I have attempted to do so by the last line of code in the gpplot below, however I get an error!
cultnature_fig <- culture_nature_long |> ggplot(mapping = aes(x = epoch, y = rel_freq, group = Concept)) + geom_line(aes(linetype = Concept)) + theme_classic() + labs(x = "Epoch", y = "Relative Frequency") + theme(axis.text.x = element_text(angle = 45, hjust = 1)) + theme(legend.position = c(0.18,0.80)) + scale_y_continuous(labels = scales::comma) print(cultnature_fig)
Error: Discrete value supplied to continuous scale
I have also tried to use the below at the top of my script but it doesn't alter the scientific notation in the data frame or the ggplot.
options(scipen = 999) # to eliminate scientific notation in numbers and charts
Figure without attempted removal of sci notation: