Let see I have the following two plots.
library(data.table)
library(ggplot2)
df_one <- data.table(
x = c(1, 1, 3),
y = c(10, 20, 30)
)
df_two <- data.table(
x = c(1, 2, 3),
y = c(1000, 1600, 3100)
)
df_one %>% ggplot(aes(x, y)) + geom_point() + geom_line()
df_two %>% ggplot(aes(x, y)) + geom_point() + geom_line()
The values on Y axis are different by width. How adjust two plots to have the same width of labels on Y if we do not know info about each data sets. For example, if we would like to set width as a fixed number of chars (10 or 15).
Thanks