Function used to create a new ggplot
ggplot()
which function makes a scatter plot of two variables
plot(x, y)
plot()
what are the 3 color related aesthetics?
Color, fill, & alpha
This function allows you to override R and choose your own colors for a scatter plot using continuous data
scale_color_manual
Function used to construct aesthetic mappings
aes()
which function makes a histogram of one variable
hist(x)
hist()
What are the 3 differentiation related aesthetics?
linetype, size, & shape
This function allows you override R and set high/low values to a different gradient color
scale_color_gradient
character used to add components to a plot
+ and %+%
which funtion adds points to the axes of ggplot?
(will do this without any input & default is solid black points)
geom_point()
which function allows you to modify components of a theme
theme()
This function allows you to override R and choose your own colors for a scatter plot using categorical data
scale_color_brewer
Function used to save a ggplot (or other grid object) with sensible defaults
ggsave()
Which function(s) create bar charts?
geom_bar(), geom_col(), stat_count()
Use these functions in conjunction with theme() to choose and tweak individual settings
Element functions: margin(), element_blank(), element_rect(), element_line(), element_text(), and rel()
which functions allow you to modify axis, legend, and plot labels
labs(), xlab(), ylab(), and ggtitle()
Function used to create a quick plot
qplot() or quickplot()
Which function adds y labels if they are already included in the data set?
geom_text()
theme_grey(), theme_gray(), theme_bw(), theme_linedraw(), theme_light(), theme_dark(), theme_minimal(), theme_classic(), theme_void(), and theme_test()
which functions allow you to set scale limits
lims(), xlim(), ylim()