Description Usage Arguments Author(s) See Also Examples
Create boxplot of data.
1 2 3 |
data |
a dataframe |
x |
Unquoted variable name. The column in |
y |
Unquoted variable name. The column in |
facet |
character vector containing name(s) of one or two additional factors in |
fill |
a character vector specifying the color of the boxes. Default is gray. |
facet.cols |
numeric. Number of columns in display of faceted plots. |
scales |
character vector specifying whether scales should be fixed across facets. Values are "fixed", or "free". |
width |
numeric. Width of boxes in plots. |
... |
additional options. |
Jason Grafmiller
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(brown_genitives)
## plot the distribution of type-token ratios by genre
ggBox.plot(brown_genitives, Genre, TypeTokenRatio)
## plot the distribution of type-token ratios by
## genre and construction type
ggBox.plot(brown_genitives, Genre, TypeTokenRatio,
facet = "Type")
## plot the distribution of type-token ratios by
## genre, possessor animacy and construction type
ggBox.plot(brown_genitives, Genre, TypeTokenRatio,
facet = c("PossrAnimacyBin", "Type"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.