View source: R/PlotFunctions.R
multiplot | R Documentation |
Sick of copying this one into your code? Well, not anymore.
multiplot(plotlist = NULL)
plotlist |
This is the list of your charts |
Multiple ggplots on a single image
Adrian Antico
Other Graphics:
AddFacet()
,
BarPlot()
,
BoxPlot()
,
ChartTheme()
,
CorrMatrixPlot()
,
DensityPlot()
,
HeatMapPlot()
,
HistPlot()
,
PlotlyConversion()
,
StockData()
,
StockPlot()
,
ViolinPlot()
## Not run:
Correl <- 0.85
data <- data.table::data.table(Target = runif(100))
data[, x1 := qnorm(Target)]
data[, x2 := runif(100)]
data[, Independent_Variable1 := log(
pnorm(Correl * x1 + sqrt(1-Correl^2) * qnorm(x2)))]
data[, Predict := (
pnorm(Correl * x1 + sqrt(1-Correl^2) * qnorm(x2)))]
p1 <- AutoQuant::ParDepCalPlots(
data,
PredictionColName = "Predict",
TargetColName = "Target",
IndepVar = "Independent_Variable1",
GraphType = "calibration",
PercentileBucket = 0.20,
FactLevels = 10,
Function = function(x) mean(x, na.rm = TRUE))
p2 <- AutoQuant::ParDepCalPlots(
data,
PredictionColName = "Predict",
TargetColName = "Target",
IndepVar = "Independent_Variable1",
GraphType = "boxplot",
PercentileBucket = 0.20,
FactLevels = 10,
Function = function(x) mean(x, na.rm = TRUE))
AutoQuant::multiplot(plotlist = list(p1,p2))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.