View source: R/lexical_classification.R
plot.lexical_classification | R Documentation |
Plots a lexical_classification object as a heat map Gantt plot with lexical_classification over time (measured in words) and lexical_classification scores per sentence. In the dotplot plot the black dots are the average lexical_classification per grouping variable.
## S3 method for class 'lexical_classification'
plot(
x,
bar.size = 5,
low = "blue",
mid = "grey99",
high = "red",
ave.lexical_classification.shape = "+",
alpha = 1/4,
shape = 19,
point.size = 2.5,
jitter = 0.1,
nrow = NULL,
na.rm = TRUE,
order.by.lexical_classification = TRUE,
plot = TRUE,
error.bars = TRUE,
error.bar.height = 0.5,
error.bar.size = 0.5,
error.bar.color = "black",
error.bar.alpha = 0.6,
...
)
x |
The lexical_classification object. |
bar.size |
The size of the bars used in the Gantt plot. |
low |
The color to be used for lower values. |
mid |
The color to be used for mid-range values (default is a less striking color). |
high |
The color to be used for higher values. |
ave.lexical_classification.shape |
The shape of the average lexical_classification score used in the dot plot. |
alpha |
Transparency level of points (ranges between 0 and 1). |
shape |
The shape of the points used in the dot plot. |
point.size |
The size of the points used in the dot plot. |
jitter |
Amount of vertical jitter to add to the points. |
nrow |
The number of rows in the dotplot legend (used when the number of
grouping variables makes the legend too wide). If |
na.rm |
logical. Should missing values be removed? |
order.by.lexical_classification |
logical. If |
plot |
logical. If |
error.bars |
logical. If |
error.bar.height |
The height of the error bar ends. |
error.bar.size |
The size/thickness of the error bars. |
error.bar.color |
The color of the error bars. If |
error.bar.alpha |
The alpha level of the error bars. |
... |
ignored |
Invisibly returns the ggplot2
objects that form the larger
plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.