icauchy(0.5, location = 3, scale = 1)
set.seed(8675309)
icauchy(runif(10), 0, 3, showPDF = TRUE)
set.seed(8675309)
icauchy(runif(10), 0, 3, showECDF = TRUE)
set.seed(8675309)
icauchy(runif(10), 0, 3, showPDF = TRUE, showECDF = TRUE, sampleColor = "blue3")
set.seed(8675309)
icauchy(runif(10), 0, 3, showPDF = TRUE, showCDF = FALSE)
icauchy(runif(100), 0, 3, showPDF = TRUE, minPlotQuantile = 0.02, maxPlotQuantile = 0.98)
# plot the PDF and CDF without any variates
icauchy(NULL, 0, 3, showPDF = TRUE, showCDF = TRUE)
# plot CDF with inversion and PDF using show
icauchy(runif(10), 0, 3, show = c(1,1,0))
icauchy(runif(10), 0, 3, show = 6)
# plot CDF with inversion and ECDF using show, using vunif
icauchy(vunif(10), 0, 3, show = c(1,0,1))
icauchy(vunif(10), 0, 3, show = 5)
# plot CDF with inversion, PDF, and ECDF using show
icauchy(vunif(10), 0, 3, show = c(1,1,1))
icauchy(vunif(10), 0, 3, show = 7)
# plot three different CDF+PDF+ECDF horizontal displays,
# with title only on the first display
oldpar <- par(no.readonly = TRUE)
par(mfrow = c(3,3)) # 3 rows, 3 cols, filling rows before columns
set.seed(8675309)
icauchy(runif(20), 0, 3, show = 7, respectLayout = TRUE, restorePar = FALSE)
icauchy(runif(20), 0, 3, show = 7, respectLayout = TRUE, restorePar = FALSE, showTitle = FALSE)
icauchy(runif(20), 0, 3, show = 7, respectLayout = TRUE, restorePar = TRUE, showTitle = FALSE)
par(oldpar)
# display animation of all components
icauchy(runif(10), 0, 3, show = 7, plotDelay = 0.1)
# display animation of CDF and PDF components only
icauchy(runif(10), 0, 3, show = 5, plotDelay = 0.1)
if (interactive()) {
# interactive -- pause at each stage of inversion
icauchy(runif(10), 0, 3, show = 7, plotDelay = -1)
}
Run the code above in your browser using DataLab