Method for scatter plot creation
create_scatterplot(
data,
data.labels = NULL,
data.hovertext = NULL,
transparency = 1,
pointsize = 1,
labelsize = 3,
color = NULL,
x_label = "",
y_label = "",
z_label = "",
density = TRUE,
line = TRUE,
categorized = FALSE,
highlight.data = NULL,
highlight.labels = NULL,
highlight.hovertext = NULL,
highlight.color = "#FF0000",
xlim = NULL,
ylim = NULL,
colorbar.limits = NULL,
width = "auto",
height = "auto",
ppi = 72,
plot.method = "static",
scale = 1
)
data.table containing plot data column 1: id column 2, 3(, 4): x, y(, z)
Vector of labels used for data. Length has to be equal to nrow(data).
Character vector with additional hovertext. Length has to be equal to nrow(data).
Set point transparency. See geom_point
.
Set point size. See geom_point
.
Set label size. See geom_text
.
Vector of colors used for color palette.
Label x-Axis
Label Y-Axis
Label Z-Axis
Boolean value, perform 2d density estimate.
Boolean value, add reference line.
Z-Axis (if exists) as categories.
data.table containing data to highlight. Same structure as data.
Vector of labels used for highlighted data. Length has to be equal to nrow(highlight.data).
Character vector with additional hovertext. Length has to be equal to nrow(highlight.data).
String with hexadecimal color-code.
Numeric vector of two setting min and max limit of x-axis. See lims
.
Numeric vector of two setting min and max limit of y-axis. See lims
.
Vector with min, max values for colorbar (Default = NULL).
Set plot width in cm (Default = "auto").
Set plot height in cm (Default = "auto").
Pixel per inch (default = 72).
Whether the plot should be 'interactive' or 'static' (Default = 'static').
Modify plot size while preserving aspect ratio (Default = 1).
Returns list(plot = ggplotly/ ggplot, width, height, ppi, exceed_size).
Width/ height limit = 500. If exceeded default to 500 and issue exceed_size = TRUE.