stat_sii_risksurface {ggsolvencyii} | R Documentation |
stat_sii_risksurface
Description
returns a 'ggplot2' object with filled, concentric circle(part)s, defined by the values of a hierarchy of levels.
Usage
stat_sii_risksurface(mapping = NULL, data = NULL,
geom = "sii_risksurface", position = "identity",
show.legend = TRUE, inherit.aes = TRUE, na.rm = FALSE,
levelmax = 99, structure = ggsolvencyii::sii_structure_sf16_eng,
maxscrvalue = NULL, aggregatesuffix = "_other", scalingx = 1,
scalingy = 1, rotationdegrees = NULL, rotationdescription = NULL,
squared = FALSE, plotdetails = NULL, ...)
Arguments
mapping |
required aes(thetics) : x (i.e. time, longitude), y (i.e SCR ratio, lattitude), id, description (), value |
data |
the dataset in tidyverse format (column 'description' as a factor). see examples in |
geom |
the default is geom_sii_risksurface |
position |
standard ggplot function |
show.legend |
standard ggplot function |
inherit.aes |
standard ggplot function |
na.rm |
standard ggplot function |
levelmax |
(integer or dataframe, default = 99) |
structure |
(dataframe: default =
. In the standard formula structure, SCR has level 1, with childlevel 2. This means it consists of all datalines with level == 2, ie. "BSCR", "operational" and "Adjustment-LACDT". lines in the dataset with a suffix "d" behind the levelnumber are diversification items. As of now these are not used in any calculation. the values in column "description" in the dataset need to match the description in this file. The package contains also a file |
maxscrvalue |
(optional, double, default = NULL) |
aggregatesuffix |
(string, default = "_other") |
scalingx |
(optional, positive value ,default = 1) |
scalingy |
(optional, positive value ,default = 1) |
rotationdegrees |
(optional, integer, -360 to 360, default = NULL) |
rotationdescription |
(optional, string, default = NULL) |
squared |
(optional, boolean, default = FALSE) |
plotdetails |
(optional) a table with columns 'levelordescription' and 'surface', indicating which circle elements to plot. When no table is provided all segments are plotted. example 3 shows how to combine geom_sii_risksurface and geom_sii_riskoutline by using using table |
... |
ellipsis, a standard R parameter |
Value
a ggplot object