I want to appending % symbol with y-axis values in ggplot2. I used scale_y_continuous(labels=percent) but it first multiply the values with 100 and then attach % symbol whereas I need something like this 35% rather than 3,500%.
library(ggplo2)
library(scales)
p <- ggplot(mpg, aes(displ, cty)) + geom_point()
p + facet_grid(. ~ cyl)
p + facet_grid(. ~ cyl) + scale_y_continuous(labels=percent)

Pasting the "%" onto the values seems to work fine
p + facet_grid(. ~ cyl) + scale_y_continuous(labels=function(x) paste0(x,"%"))
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With