| plot_mfd {funcharts} | R Documentation | 
Plot a Multivariate Functional Data Object.
Description
Plot an object of class mfd using ggplot2
and patchwork.
Usage
plot_mfd(
  mfdobj,
  mapping = NULL,
  data = NULL,
  stat = "identity",
  position = "identity",
  na.rm = TRUE,
  orientation = NA,
  show.legend = NA,
  inherit.aes = TRUE,
  type_mfd = "mfd",
  y_lim_equal = FALSE,
  ...
)
Arguments
| mfdobj | A multivariate functional data object of class mfd. | 
| mapping | Set of aesthetic mappings additional
to  | 
| data | A  | 
| 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. | 
| y_lim_equal | A logical value. If  | 
| ... | See  | 
Value
A plot of the multivariate functional data object.
Examples
library(funcharts)
library(ggplot2)
mfdobj <- data_sim_mfd()
ids <- mfdobj$fdnames[[2]]
df <- data.frame(id = ids, first_two_obs = ids %in% c("rep1", "rep2"))
plot_mfd(mapping = aes(colour = first_two_obs),
         data = df,
         mfdobj = mfdobj)