# NOT RUN {
gf_point()
gf_point(mpg ~ hp, color = ~ cyl, size = ~wt, data = mtcars)
# faceting -- two ways
gf_point(mpg ~ hp, data = mtcars) %>%
gf_facet_wrap(~ am)
gf_point(mpg ~ hp | am, group = ~ cyl, data = mtcars)
gf_point(mpg ~ hp | ~ am, group = ~ cyl, data = mtcars)
gf_point(mpg ~ hp | am ~ ., group = ~ cyl, data = mtcars)
# Chaining in the data
mtcars %>% gf_point(mpg ~ wt)
# }
Run the code above in your browser using DataLab