QuantPlot {quantkriging} | R Documentation |
Plot Univariate Quantile Data
Description
Plots the Quantile output from quantKrig if there is only one input.
Usage
QuantPlot(QKResults, X1 = NULL, Y1 = NULL, main = NULL,
xlab = NULL, ylab = NULL, colors = NULL)
Arguments
QKResults |
Output from the quantKrig function. |
X1 |
X values if ploting the original data in the background |
Y1 |
Y values if ploting the original data in the background |
main |
Plot Title defaults to Fitted Quantiles |
xlab |
Label for x-axis defaults to X |
ylab |
Label for y-axis defaults to Y |
colors |
Customize colors associated with the quantiles |
Value
A ggplot object
Examples
X <- seq(0,1,length.out = 20)
Y <- cos(5*X) + cos(X)
Xstar <- rep(X,each = 100)
Ystar <- rep(Y,each = 100)
Ystar <- rnorm(length(Ystar),Ystar,1)
Ystar <- (Ystar - mean(Ystar)) / sd(Ystar)
Xstar <- (Xstar - min(Xstar)/ max(Xstar) - min(Xstar))
lb <- c(0.0001,0.0001)
ub <- c(10,10)
Qout <- quantKrig(Xstar,Ystar, seq(0.05,0.95, length.out = 7), lower = lb, upper = ub)
QuantPlot(Qout, Xstar, Ystar)
[Package quantkriging version 0.1.0 Index]