How to Change X and Y Axis Values from Real to Integers in ggplot2

How to Change Y-axis Values to Integers?

When you make a plot with ggplot2, it automatically chooses appropriate range for x and y-axis values and it can be either floats or integers. In this post, we will see how to change X/Y-axis values to integers. In ggplot2, we can use scale_x_continuous() and scale_y_continuous() functions to change the axis values. Let us first… Continue reading How to Change X and Y Axis Values from Real to Integers in ggplot2

Exit mobile version