QuantPlot: Plot Univariate Quantile Data

Description Usage Arguments Value Examples

View source: R/QuantPlot.R

Description

Plots the Quantile output from quantKrig if there is only one input.

Usage

1
2
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)

quantkriging documentation built on March 13, 2020, 2:54 a.m.