R how to show all x-axis labels

############## showing all x axis labels ###############

ID <- 1:50 A <- runif(50,1,100) df <- data.frame(ID,A) ggplot(df, aes(x = ID, y = A)) + geom_point() + theme(axis.text.x = element_text(angle = 90, vjust = 0.5)) + scale_x_continuous("ID", labels = as.character(ID), breaks = ID)

Leave a Reply

Your email address will not be published. Required fields are marked *