autoplot {IFC} | R Documentation |
Automatic Parameters Detection for IFC Graphs
Description
Function intended to generate IFC graphs with minimal inputs from users.
It is essentially based on automatic detection of graphical parameters thanks to 'shown_pops' argument.
Usage
autoplot(
obj,
shown_pops = NULL,
subset = NULL,
x = NULL,
x_trans = NULL,
y = NULL,
y_trans = NULL,
type = NULL,
smoothingfactor = NULL,
normalize = NULL,
bin,
viewport = "ideas",
precision = c("light", "full")[1],
color_mode = c("white", "black")[1],
draw = TRUE,
...
)
Arguments
obj |
an 'IFC_data' object extracted by ExtractFromDAF(extract_features = TRUE) or ExtractFromXIF(extract_features = TRUE). |
shown_pops |
one or several populations present in 'obj'. Default is NULL. |
subset |
a population present in 'obj'. Default is NULL. Background population that will be used to generate graph. This argument will not be used when graph is an histogram. If this argument is filled with a different population than what can be determined thanks to 'shown_pops', Then 'shown_pops' will be treated as overlay. However, 'shown_pops' argument can still be used to determine x, y axis and their transformation |
x |
feature for x-axis. Default is NULL.
When empty, |
x_trans |
parameter for x-axis transformation. Default is NULL.
If not provided, transformation will be determined thanks to 'shown_pops'.
It takes precedence when provided and if provided it has to be be either "P" or coercible to a positive numeric.
"P" will leave x-axis as is but a positive numeric will be passed has hyper argument of |
y |
feature for y-axis. Default is NULL.
When empty, |
y_trans |
parameter for y-axis transformation. Default is NULL.
If not provided, transformation will be determined thanks to 'shown_pops'.
It takes precedence when provided and and if provided it has to be be either "P" or coercible to a positive numeric.
"P" will leave y-axis as is but a positive numeric will be passed has hyper argument of |
type |
type of plot. Default is NULL to allow |
smoothingfactor |
when type of graph is "histogram", whether to smooth it or not. Default is NULL. Should be an integer [0:20] Note that 0 means no smoothing and other values will produce smoothing |
normalize |
when type of graph is "histogram", whether to normalize it or not. Default is NULL. Should be a logical. |
bin |
number of bins when graph's type is "histogram" / number of equally spaced grid points for density.
Default is missing to allow |
viewport |
Either "ideas", "data" or "max" defining limits used for the graph. Default is "ideas". |
precision |
when graphs is a 2D scatter with population overlay, this argument controls amount of information displayed. Default is "light". |
color_mode |
Whether to extract colors from obj in white or black mode. Default is "white". |
draw |
whether to draw plot. Default is TRUE. |
... |
Other arguments to be passed. |
Details
when 'shown_pops' are not provided, autoplot
can't determine anything.
So, if not provided default values will be used:
-'subset' = "All"
-'x' = "Object Number"
-'x_trans' = "P"
-'y' = "Object Number"
-'y_trans' = "P"
-'type' = "histogram"
Value
an lattice trellis object