scatter_plot | R Documentation |
Create scatter plot with ggplot2
scatter_plot( df, x, y, text = NA, group, size = 1.5, scale = NA, index = NA, key = NA, title = "", xlab = "", ylab = "" )
df |
Dataframe, Dataframe to create plot with |
x |
String, Value to plot on X axis |
y |
String, Value to plot on Y axis |
text |
String, Hover info text |
group |
String, Value to color/group data |
size |
Numeric, size of dots (default 1.5) |
scale |
String, Should X-axis be scaled in log10 |
index |
Vector, vector of items to select from dataframe |
key |
String, Value for point selection by plotly |
title |
String, Title for plot |
xlab |
String, Label for X axis |
ylab |
String, Label for Y axis |
gg, Plot object (ggplot2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.