Creates a geom layer to plot a Multivariate Functional Data Object with ggplot
Creates a geom layer to plot a Multivariate Functional Data Object
with ggplot
geom_mfd( mapping = NULL, data = NULL, mfdobj, stat = "identity", position = "identity", na.rm = TRUE, orientation = NA, show.legend = NA, inherit.aes = TRUE, type_mfd = "mfd", ... )
mapping |
Set of aesthetic mappings additional
to |
data |
A |
mfdobj |
A multivariate functional data object of class mfd. |
stat |
See |
position |
See |
na.rm |
See |
orientation |
See |
show.legend |
See |
inherit.aes |
See |
type_mfd |
A character value equal to "mfd" or "raw". If "mfd", the smoothed functional data are plotted, if "raw", the original discrete data are plotted. |
... |
See |
A geom_line layer to be added to
ggplot2::ggplot()
in order to plot mfdobj.
library(funcharts)
mfdobj <- data_sim_mfd()
ids <- mfdobj$fdnames[[2]]
df <- data.frame(id = ids, first_two_obs = ids %in% c("rep1", "rep2"))
ggplot() +
geom_mfd(mapping = aes(colour = first_two_obs),
data = df,
mfdobj = mfdobj)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.