Create a new ggplot and (optionally) set default dataset aesthetics mapping.
gf_plot(...)
arguments that can include data
(a data frame or something that can be
ggplot2::fortify()
ed to become one) and aesthetics specified using the following
formula notation: aesthetic = ~ expression
. See examples.
a gg object
gf_plot(mtcars, x = ~ wt, y = ~ mpg, color = ~ factor(cyl)) |>
gf_density_2d() |>
gf_point()