fill = var_name
x = var_name
facet_grid(. ~ var_name)
fill = var_name_1
x = var_name_2
x = var_name_1
facet_grid(. ~ var_name_2)
Using the ggplot2::geom_point() function
ggplot2::geom_point()
library(tidyverse) # super helpful everything, including ggplot
data_ihno %>% ggplot() + aes(x = mathquiz, y = statquiz) + geom_point()
data_ihno %>% dplyr::mutate(phobia_cut3 = cut(phobia, breaks = c(0, 2, 4, 10), include.lowest = TRUE)) %>% ggplot() + aes(x = mathquiz, y = statquiz, color = phobia_cut3) + geom_point()
data_ihno %>% dplyr::mutate(phobia_cut3 = cut(phobia, breaks = c(0, 2, 4, 10), include.lowest = TRUE)) %>% ggplot() + aes(x = mathquiz, y = statquiz) + geom_count() + facet_grid(. ~ phobia_cut3)