1/17
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
FRONT
BACK
How would you remove unnecessary numbers from the x axis of a ggplot if your variable on the x axis has the same values? (ex: groups of 3s, 5s, and 8s)
Inside of aes(), wrap the variable in factor()
How do you add a trendline to ggplot()?
geom_smooth()
How do you make scatterplot points translucent? CHECK
geom_point(alpha = val)
How can you alter the aesthetics of an already created ggplot()?
By adding aes() to it again with the changed variable
What is the difference between the fill and color aesthetics? CHECK
fill is always the inside coloring, where color is sometimes just the outside coloring
What aesthetics allow you to change the line dash pattern, the shape of a dot, and the text on a plot or axes?
linetype: line dash pattern
shape: dot shape
labels: plot or axis text
How do you make a scatterplot with text instead of dots?
+ geom_text()
Where are attributes called?
In the geom function
How do you get the row names of a dataframe in r?
row.names(dataframe)
How do you jitter the data in a ggplot?
+ geom_point(position = “jitter”)
How do you set a specific jitter?
jitterVar <- poition_jitter(width = x, height = y, seed = z)
What is the general format for scale functions
scale_aesthetic_randomBullshit
What do scale functions do?
They edit parts of ggplots associated with variables
How do you use labs to rename the x and y axis?
+ labs(x = “xAxisName“, y = “yAxisName”)
How do you set x axis or y axis limits?
+ ylim(low, high)
+ xlim(low, high)
FIRST PASS
FIRST PASS
SECOND PASS
SECOND PASS