I want to change the format of the numbers in my y axis from n000 to nk, where n is a number from 1 to 10 and k is just "k" and its only function is to replace 3 zeros. Why? To save some space. My code is:
x <- seq(1:10)
y <- c(0, 500, 1000, 5000, 10000, 13000, 8000, 4000, 1000, 200)
df <-data.frame(x, y)
library(ggplot2)
ggplot(df, aes(x, y)) +
geom_bar(stat="identity", fill="white", colour="black") +
xlab("X (%)") +
ylab("Número de estructuras") +
theme_bw()
Thanks