First Assignment for DACSS.
ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy))
ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy, size = cty, color = hwy))
ggplot(data = mpg) +
geom_smooth(mapping = aes(x = displ, y = hwy, color = drv),
show.legend = TRUE)
ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy, color = drv)) +
geom_smooth(mapping = aes(x = displ, y = hwy, linetype = drv, color = drv),
show.legend = TRUE
)
Text and figures are licensed under Creative Commons Attribution CC BY-NC 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".
For attribution, please cite this work as
Campbell (2022, Feb. 3). Data Analytics and Computational Social Science: EthanCampbellHW1. Retrieved from https://github.com/DACSS/dacss_course_website/posts/httpsrpubscomethancampbell860941/
BibTeX citation
@misc{campbell2022ethancampbellhw1, author = {Campbell, Ethan}, title = {Data Analytics and Computational Social Science: EthanCampbellHW1}, url = {https://github.com/DACSS/dacss_course_website/posts/httpsrpubscomethancampbell860941/}, year = {2022} }