# Error continuous value supplied to discrete scale

## Introduction

Discrete data can only take on certain values, while continuous data can take on any value within a certain range. When you’re working with continuous data, you need to be careful to avoid supplying a discrete scale to your data. Doing so can result in an error, as the two data types are incompatible.

A discrete scale is one that has a finite number of values, while a continuous scale has an infinite number of values. Discrete data can only take on certain values, while continuous data can take on any value within a certain range. For example, you have discrete data if you have a list of numbers from 1 to 10. You have continuous data if you have a list of numbers from 1 to 10 that also includes decimal values such as 1.5 or 3.7.

When working with continuous data, you must be careful to avoid supplying a discrete scale to your data. Doing so can result in an error, as the two data types are incompatible. In general, it’s best to avoid using a discrete scale when working with continuous data unless you have a good reason for doing so.

## What is an Error?

An error is a mistake, a lapse in judgment, or a failure to follow instructions. We all make errors from time to time. Some errors are minor, while others can have major consequences. Continuous value supplied to discrete scale is one type of error.

### Types of Error

An error is an act that fails to achieve the intended goal. Errors can occur in any field, but are especially common in medicine and healthcare. There are many different types of error, but they can broadly be classified into two categories: human error and systems error.

Human error is the most common type of error and occurs when an individual makes a mistake. This could be due to lack of knowledge, poor judgement or fatigue. Human errors can often be prevented by better training and more effective communication.

Systems errors are caused by problems with the systems or processes in place, rather than by individual mistakes. These errors can be much more difficult to prevent and may require changes to organizational culture or the introduction of new technology.

### How to Calculate Error

How to Calculate Error
Error is a measure of the difference between the observed value and the true value of a quantity. It can be calculated as a percentage, absolute value, or relative value. The most common way to calculate error is as a percentage of the true value, which is called the percent error.

To calculate percent error, take the observed value and subtract the true value. Then, divide by the true value and multiply by 100 to get the percentage. For example, if you observe a quantity to be 50 and it is actually 60, then your percent error would be (50-60)/60*100= -16.7%.

Another way to calculate error is as an absolute value. This is simply the difference between the observed and true values. For example, if you observe a quantity to be 50 and it is actually 60, then your absolute error would be 10. If you observe a quantity to be 50 and it is actually 40, then your absolute error would be 10 in the positive direction.

A third way to calculate error is known as relative error. Relativeerror expresses error as a percentage of some other quantity that you expectto be close to the actual value. For example, if you are measuringthe length of an object and expect it to be 3 feet long, but yourmeasurement only gives you 2 feet 6 inches, then your relativeerror would be (2.5-3)/3*100= -16.7%. Relativeerror can also ber expressed in terms of percent difference with th following equation: % Difference = |True Value – Observed Value|/|True Value| * 100%

## What is a Continuous Value?

In statistics, a continuous value is a real value that can assume an infinite number of values. Continuous values are often measurement data, such as height, weight, or length. Discrete values, on the other hand, are values that can only assume a finite number of values. Examples of discrete values include items such as counting data, like the number of students in a class, or categorical data, like gender.

### What is a Discrete Scale?

A discrete scale is a scale where the distance between each value is equal. An example of this would be if you were plotting the height of people, each value (in inches or centimeters) would be one unit apart. A continuous scale is a scale where the distance between each value can vary. An example of this would be if you were plotting the temperature, the distance between 70 degrees and 71 degrees would be the same as the distance between 69 degrees and 70 degrees, but the distance between 70 degrees and 80 degrees could be larger or smaller than the distance between 69 degrees and 70 degrees.

## How to Fix the Error

If you’re getting the error continuous value supplied to discrete scale, it means that you’re trying to plot a continuous variable on a discrete scale. This can happen if you’re using the wrong type of plot for your data.

### Option 1: Convert the Continuous Value to a Discrete Scale

If you have a continuous value that you want to map to a discrete scale, you can use the round() or ceiling() functions to convert the continuous value to a discrete scale. For example, if you want to map continuous values from 0-10 on a discrete scale that goes from 0-5, you can use the following:

Error: continuous value supplied to discrete scale

round(0:10)
[1] 0 1 2 3 4 5 6 7 8 9 10
ceiling(0:10)
[1] 1 2 3 4 5 6 7 8 9

### Option 2: Use a Logarithmic Scale

One way to fix the continuous value error is by using a logarithmic scale. A logarithmic scale transformed your data so that it creates a more even distribution. This can be especially helpful if you have outliers in your data set, as it will make them less influential.

To use a logarithmic scale, you first need to determine which axis to transform. You can do this by looking at the range of values on each axis and seeing which one has the most variation. Once you’ve decided which axis to transform, you need to calculate the logarithm of each value on that axis. The easiest way to do this is by using a calculator or an online tool like this one from Wolfram Alpha

Once you have the logarithm of each value, you can create your plot as usual. Remember to label your axes so that your readers know that you’ve used a logarithmic scale!

## Conclusion

This error can occur when you are trying to map a continuous variable to a discrete scale. For example, if you are trying to map a continuous variable that represents age (in years) to a discrete scale that only has categories for “young,” “middle-aged,” and “elderly,” you will get this error.

To fix this, you will need to either bin your continuous variable into discrete categories (e.g. age ranges), or use a different scale that is compatible with continuous data.