make_scatter | R Documentation |
Generate and style a scatter plot from two numeric columns in a (spatial - sf) data frame. Designed to be used in a Shiny application to visualise the bivariate relationship between two variables.
make_scatter(
chart_active_df,
scatter_x_var,
scatter_y_var,
point,
x_lab,
y_lab,
axis_font_size,
lab_font_size
)
chart_active_df |
data frame containing a column whose values will be used to generate a histogram. |
scatter_x_var |
a single element character vector specifying the name of the column to use to plot on the X-axis. |
scatter_y_var |
a single element character vector specifying the name of the column to use to plot on the Y-axis. |
point |
point size. |
x_lab |
a single element character vector specifying the X-axis label. |
y_lab |
a single element character vector specifying the Y-axis label. |
axis_font_size |
a numeric value specifying the font size for axis tick labels. |
lab_font_size |
a numeric value specifying the font size for axis labels. |
This is a helper function to pass user defined data, aesthetic mappings, and chart styling parameters to ggplot within a Shiny app.
a ggplot object that can be passed to renderPlot to display in a Shiny application.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.