## install the package if you haven't!
________(ggplot2)
Lab-01: Running R Script
Note
- Load R package ggplot2 into your Posit Cloud.
Create a R script named lab01-run-script.R in your 3570-project.
Copy and paste the code below into the script, and save it.
<- ggplot(data = diamonds) +
bar geom_bar(mapping = aes(x = cut, fill = cut),
show.legend = FALSE, width = 1) +
theme(aspect.ratio = 1) +
labs(x = NULL, y = NULL)
+ coord_flip()
bar + coord_polar() bar
- Source the script. A pretty plot showing up?!