R : Copyright 2005, The R Foundation for Statistical Computing Version 2.1.1 (2005-06-20), ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for a HTML browser interface to help. Type 'q()' to quit R. > ### *
> ### > attach(NULL, name = "CheckExEnv") > assign(".CheckExEnv", as.environment(2), pos = length(search())) # base > ## add some hooks to label plot pages for base and grid graphics > setHook("plot.new", ".newplot.hook") > setHook("persp", ".newplot.hook") > setHook("grid.newpage", ".gridplot.hook") > > assign("cleanEx", + function(env = .GlobalEnv) { + rm(list = ls(envir = env, all.names = TRUE), envir = env) + RNGkind("default", "default") + set.seed(1) + options(warn = 1) + delayedAssign("T", stop("T used instead of TRUE"), + assign.env = .CheckExEnv) + delayedAssign("F", stop("F used instead of FALSE"), + assign.env = .CheckExEnv) + sch <- search() + newitems <- sch[! sch %in% .oldSearch] + for(item in rev(newitems)) + eval(substitute(detach(item), list(item=item))) + missitems <- .oldSearch[! .oldSearch %in% sch] + if(length(missitems)) + warning("items ", paste(missitems, collapse=", "), + " have been removed from the search path") + }, + env = .CheckExEnv) > assign("..nameEx", "__{must remake R-ex/*.R}__", env = .CheckExEnv) # for now > assign("ptime", proc.time(), env = .CheckExEnv) > grDevices::postscript("chplot-Examples.ps") > assign("par.postscript", graphics::par(no.readonly = TRUE), env = .CheckExEnv) > options(contrasts = c(unordered = "contr.treatment", ordered = "contr.poly")) > options(warn = 1) > library('chplot') Loading required package: ellipse Loading required package: KernSmooth KernSmooth 2.22 installed Copyright M. P. Wand 1997 Loading required package: lattice > > assign(".oldSearch", search(), env = .CheckExEnv) > assign(".oldNS", loadedNamespaces(), env = .CheckExEnv) > cleanEx(); ..nameEx <- "chadd" > > ### * chadd > > flush(stderr()); flush(stdout()) > > ### Name: chadd > ### Title: Add elements to a chplot > ### Aliases: chadd > ### Keywords: aplot > > ### ** Examples > > data(hdr) > # hdr dataset > param<-chplot(age~income|gender,data=hdr,log="x") Warning: attempt to use invalid font 10 replaced by font 1 Warning: attempt to use invalid font 10 replaced by font 1 Warning: attempt to use invalid font 10 replaced by font 1 Warning: attempt to use invalid font 10 replaced by font 1 > # box around the legend region > chadd(param,3,box,"figure") > # tickmark for overall mean in marginal distribution plots > chadd(param,2,lines,c(mean(hdr$income),mean(hdr$income)),c(0,.05)) > chadd(param,4,lines,c(0,.025),c(mean(hdr$age),mean(hdr$age))) > > > > cleanEx(); ..nameEx <- "chplot" > > ### * chplot > > flush(stderr()); flush(stdout()) > > ### Name: chplot > ### Title: Augmented Convex Hull Plot > ### Aliases: chplot > ### Keywords: hplot > > ### ** Examples > > # the hdr dataset > data(hdr) > chplot(age~income|gender,data=hdr,log="x") Warning: attempt to use invalid font 10 replaced by font 1 Warning: attempt to use invalid font 10 replaced by font 1 Warning: attempt to use invalid font 10 replaced by font 1 Warning: attempt to use invalid font 10 replaced by font 1 > # the iris dataset > data(iris) > chplot(Sepal.Length~Sepal.Width|Species,data=iris,bw=TRUE, + legend=list(cex=.6)) Warning: attempt to use invalid font 10 replaced by font 1 Warning: attempt to use invalid font 10 replaced by font 1 Warning: attempt to use invalid font 10 replaced by font 1 Warning: attempt to use invalid font 10 replaced by font 1 Warning: attempt to use invalid font 10 replaced by font 1 > chplot(Petal.Length ~ Petal.Width | Species, data = iris, + legend = list(cex = 0.6),plot.points=TRUE,pch = 18, cex = 0.5) Warning: attempt to use invalid font 10 replaced by font 1 Warning: attempt to use invalid font 10 replaced by font 1 Warning: attempt to use invalid font 10 replaced by font 1 Warning: attempt to use invalid font 10 replaced by font 1 Warning: attempt to use invalid font 10 replaced by font 1 > > > > ### *