View source: R/explore_basics.R
rt_explore_plot_scatter | R Documentation |
returns a scatterplot of 'variable' (numeric, x-axis) compared against 'comparison_variable' (y-axis)
rt_explore_plot_scatter( dataset, variable, comparison_variable, color_variable = NULL, size_variable = NULL, label_variables = NULL, label_size = 4, alpha = 0.3, jitter = FALSE, x_zoom_min = NULL, x_zoom_max = NULL, y_zoom_min = NULL, y_zoom_max = NULL, log_scale_x = FALSE, log_scale_y = FALSE, base_size = 11 )
dataset |
dataframe |
variable |
a numeric variable (y-axis) |
comparison_variable |
the additional numeric variable (x-axis) |
color_variable |
an optional variable (categoric or numeric) that allows points to be colored based on the values of the variable |
size_variable |
an optional variable (numeric) that allows points to be sized based on the values of the variable |
label_variables |
variable to show above each point; if multiple variables, then the values are shown as e.g. '(x, y, z)' |
label_size |
text size of the label corresponding to label_variables |
alpha |
controls transparency |
jitter |
enables/disables jittering |
x_zoom_min |
adjust (i.e. zoom in) to the x-axis; sets the minimum x-value for the adjustment |
x_zoom_max |
adjust (i.e. zoom in) to the x-axis; sets the maximum x-value for the adjustment |
y_zoom_min |
adjust (i.e. zoom in) to the y-axis; sets the minimum y-value for the adjustment |
y_zoom_max |
adjust (i.e. zoom in) to the y-axis; sets the maximum y-value for the adjustment |
log_scale_x |
if TRUE, applies scale_x_log10 |
log_scale_y |
if TRUE, applies scale_y_log10 |
base_size |
uses ggplot's base_size parameter for controling the size of the text |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.