7: Introduction to Data Visualization

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:14 PM on 8/9/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

18 Terms

1
New cards

FRONT

BACK

2
New cards

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()

3
New cards

How do you add a trendline to ggplot()?

geom_smooth()

4
New cards

How do you make scatterplot points translucent? CHECK

geom_point(alpha = val)

5
New cards

How can you alter the aesthetics of an already created ggplot()?

By adding aes() to it again with the changed variable

6
New cards

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

7
New cards

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

8
New cards

How do you make a scatterplot with text instead of dots?

+ geom_text()

9
New cards

Where are attributes called?

In the geom function

10
New cards

How do you get the row names of a dataframe in r?

row.names(dataframe)

11
New cards

How do you jitter the data in a ggplot?

+ geom_point(position = “jitter”)

12
New cards

How do you set a specific jitter?

jitterVar <- poition_jitter(width = x, height = y, seed = z)

13
New cards

What is the general format for scale functions

scale_aesthetic_randomBullshit

14
New cards

What do scale functions do?

They edit parts of ggplots associated with variables

15
New cards

How do you use labs to rename the x and y axis?

+ labs(x = “xAxisName“, y = “yAxisName”)

16
New cards

How do you set x axis or y axis limits?

+ ylim(low, high)

+ xlim(low, high)

17
New cards

FIRST PASS

FIRST PASS

18
New cards

SECOND PASS

SECOND PASS