PdfMultiPlot {RMOPI}R Documentation

Plot the Probability Density Functions

Description

Plot the p.d.f functions for the univariate distribution with data processed by StackRet.

Usage

PdfMultiPlot(data, x, y, Variable)

Arguments

data

a tibble contains x, y and Variable and the last one is the group variable

x

x

y

y

Variable

the group label

Value

A ggplot figure of the probability density functions

Examples

N <- 2**(1:6)
x <- seq(-5, 5, by = 10 / (32 - 1))
a <- -10.0
b <- 10.0
f_x1 <- CosPdfMulti(x, StNormChf, N, a, b)
colnames(f_x1) <- paste("N = 2 ^ ", c(1:6), sep = "")
mt1 <- StackRet(f_x1, x)
colnames(mt1) <- c("x", "y", "Variable")
PdfMultiPlot(mt1, x, y, Variable)

[Package RMOPI version 1.1 Index]