Description Usage Arguments Examples
Plot a confusion matrix.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | geom_confmat(
mapping = NULL,
data = NULL,
stat = "confmat",
position = "identity",
width = NULL,
height = NULL,
annotate = TRUE,
text.perc = FALSE,
text.digits = 3,
text.alpha = NULL,
text.angle = NULL,
text.colour = NULL,
text.family = NULL,
text.fontface = NULL,
text.group = NULL,
text.hjust = NULL,
text.lineheight = NULL,
text.size = NULL,
text.vjust = NULL,
...,
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE
)
stat_confmat(
mapping = NULL,
data = NULL,
geom = "tile",
position = "identity",
show.legend = NA,
inherit.aes = TRUE,
na.rm = FALSE,
normalize = FALSE,
...
)
|
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this layer, as a string. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
width |
The tile height. |
height |
The tile width. |
annotate |
Boolean indicator for whether to include values as text in each tile. |
text.perc |
Boolean indicator for whether to add '%' to the end of each value. |
text.digits |
Numeric vector equal to length one, indicating the number of digits to display. 'round(x, text.digits)'. |
text.alpha |
Alpha value for the text grobs. |
text.angle |
Angle value for the text grobs. |
text.colour |
Colour of the text grobs. |
text.family |
Font family of the text grobs. |
text.fontface |
Font face of the text grobs. |
text.group |
Groups of the text grobs. |
text.hjust |
Hjust of the text grobs. |
text.lineheight |
Lineheight of the text grobs. |
text.size |
Size of the text grobs. |
text.vjust |
Vjust of the text grobs. |
... |
Other arguments passed on to |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
geom |
The geometric object to use display the data |
normalize |
Boolean indicator for whether to scale the frequency values. |
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.