plot_point.Rd
Wrapper around [ggplot2::geom_point()] that plots pretty scatter plots using a custom ggplot theme.
plot_point(
data,
x_str,
y_str,
color_str = NULL,
theme_options = NULL,
show_plot = FALSE,
...
)
Data frame to use for plot.
Character string. Name of variable in data
to plot on
x-axis.
Character string. Name of variable in data
to plot on
y-axis.
Character string (optional). Name of variable in data
to use as color aesthetic in plot.
(Optional) list of arguments to pass to vthemes::theme_vmodern().
Logical. Should this plot be printed? Default FALSE
.
Other arguments to pass to [ggplot2::geom_point()].
A ggplot scatter plot.
Other pretty_ggplot_wrappers:
plot_bar()
,
plot_boxplot()
,
plot_density()
,
plot_histogram()
,
plot_line()
plot_point(iris, x_str = "Sepal.Width", y_str = "Sepal.Length")
plot_point(iris, x_str = "Sepal.Width", y_str = "Sepal.Length",
color_str = "Species")