# NOT RUN {
# }
# NOT RUN {
# Plotting iris dataset (using ggplot2 and theme_ds4psy):
library("ggplot2") # theme_ds4psy requires loading ggplot2
ggplot(datasets::iris) +
geom_jitter(aes(x = Petal.Length, y = Petal.Width, color = Species), size = 3, alpha = 2/3) +
labs(title = "Iris species",
caption = "Data from datasets::iris") +
theme_ds4psy(col_title = "black", base_size = 11)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab