View source: R/scatter_chart_class.R
scatter_chart | R Documentation |
Plots a 2d scatter plot of the input data.
scatter_chart(
xcol = 1,
ycol = 2,
points_to_label = "none",
factor_name = "none",
ellipse = "all",
ellipse_type = "norm",
ellipse_confidence = 0.95,
label_filter = character(0),
label_factor = "rownames",
label_size = 3.88,
...
)
xcol |
(numeric, integer, character) The column name, or index, of data to plot on the x-axis. The default is |
ycol |
(numeric, integer, character) The column name, or index, of data to plot on the y-axis. The default is |
points_to_label |
(character) Points to label. Allowed values are limited to the following:
The default is |
factor_name |
(character) The name of a sample-meta column to use. The default is |
ellipse |
(character) Plot ellipses. Allowed values are limited to the following:
The default is |
ellipse_type |
(character) Type of ellipse. Allowed values are limited to the following:
The default is |
ellipse_confidence |
(numeric) The confidence level for plotting ellipses. The default is |
label_filter |
(character) Labels are only plotted for the named groups. If zero-length then all groups are included. The default is |
label_factor |
(character) The column name of sample_meta to use for labelling samples on the plot. "rownames" will use the row names from sample_meta. The default is |
label_size |
(numeric) The text size of labels. Note this is not in Font Units. The default is |
... |
Additional slots and values passed to |
A
scatter_chart
object. This object has no output
slots.
See chart_plot
in the struct
package to plot this chart object.
A scatter_chart
object inherits the following struct
classes:
[scatter_chart]
>> [chart]
>> [struct_class]
M = scatter_chart(
xcol = 1,
ycol = 2,
points_to_label = "none",
factor_name = "V1",
ellipse = "all",
label_filter = character(0),
label_factor = "rownames",
label_size = 3.88,
ellipse_type = "norm",
ellipse_confidence = 0.95)
D = iris_DatasetExperiment()
C = scatter_chart(
xcol = 'Petal.Width',
ycol = 'Sepal.Width',
factor_name = 'Species'
)
chart_plot(C,D)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.