Linear correlation, how to change the axis labels on a linear correlation

Hi all,
I have complete linear correlation, my issue is that I would like to change the labeling from ml$Age and ml$ART_experience. To just "Age (Years)" and "Art Scores" I have attached my coding below so you can follow my coding process.

Any help would be greatly appreciated

Below is coding for Linear correlation:
ggplot() + geom_point( aes(ml$Age, ml$ART_experience)) + geom_smooth( method = "lm", aes(ml$Age, ml$ART_experience))

Try:

ggplot() + 
  geom_point( aes(ml$Age, ml$ART_experience)) + 
  geom_smooth( method = "lm", aes(ml$Age, ml$ART_experience)) +
  labs(x = "Age (Years)", y = "Art Scores")

@williaml thank you for your help, it worked!

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.