heplot.candisc(): the labels for group means can overlap when means are close in canonical
space (e.g., IsleThorns and AshleyRails for Pottery). Use means.pos, passed on to heplot(),
to move them, e.g., means.pos = c(AshleyRails = 1). This needs heplots (>= 1.8.7).heplot.candisc() and heplot3d.candisc() gain a factor.means argument, so the group means
can be omitted (factor.means = FALSE); previously they were always plotted.This is a bug-fix release, for models with a matrix predictor, such as splines::ns(x, 3) or poly(x, 2)
candisc() and candiscList() gave an error for such a term, because it doesn't define groups. The means component is now NULL for these terms.summary.candisc() skips the class means, and plot.candisc() draws only the scores and variable vectors, when a term has no means. There is no 1D plot for these terms, just a message.plot.candiscList(): the term argument now finds terms whose names contain spaces, such as "ns(x, 3)"datavis.ca, which is offline, with DOIs; updated the Friendly & Sigal reference in the diabetes vignette to its published version.This is a minor release, making heplots more flexible
heplot.cancor() gains a rev.axes argument, similar to that in heplot.candisc()rev.axes also added to heplot3d*() functionsconfusion() to calculate confusion matrices for LDA/QDAThis is a major release, resolving some problems with plot_discrim() and adding considerable functionality
plot_discrim() where the variables in a formula needed to be reversed.plot_discrim() now gets the data from the object, if not supplied.tile.alpha arg to plot_discim(); document how to customize colors, shapes, ...plot_discrim() gains an ellipse argument to draw data ellipses for the groups.ellipse.args to control stat_ellipse() parameterslabels and labels.args for class labels at group meansposterior in predict_discrim() becomes FALSE, as rarely neededplot_discrim() now allows plotting the results in discriminant space, e.g., LD2 ~ LD1scores.lda() to extract discriminant scorestestthat to package checksMASS::painters datapainters2 datasetdatasets.csv file to allow use of @concept tags in pkgdown siterev.axes to reverse axes in plot_discrim(), useful for plots in discrim space, where orientation is arbitraryxlim, ylim arguments to control axis limits; useful for plots in discrim space.This is a major release, adding methods for linear/quadratic discriminant analysis and improving package documentation
predict_discrim() as a wrapper to MASS::predict.lda() returning a data.frameplot_discrim() to plot decision regions for discriminant analysis using contours or background tilescor_lda() to calculate structure correlations between variables and discriminant scoresscores.lda() method to extract discriminant scoresreflect() generic to allow axis reversal for candisc and cancor objectsRoxygen: list(markdown = TRUE) in DESCRIPTIONroxygen2md(scope = "simple") for first pass of roxygen conversion to markdown, others converted by hando correct buglet with var.labels in heplot.candisc
o Added cereal data
heplot.candisc() gains a var.labels argumentscores.candisc() method to extract canonical discriminant scorescereal datasetPsyAcad datasetThis is a semi-major release, largely of the documentation of the package.
pkgdown site, https://friendly.github.io/candisc/diabetes vignette giving more discursive exampleso dontrun/donttest more examples from heplot.candisc to appease the CRAN daemon.
o Clarify docs for plot.candisc wrt col & pch (thx: Mohammad Bahram) o candisc gets a hex sticker on GitHub o Fix notes from devtools::check_win_devel
o Fixed bug in plot.candisc with default col and pch values (thx: David Carlson)
o Fix 1D plot.candisc to better reflect the canonical structure coefficients. The ylim of the scale is now forced to include 0 and -1 and/or +1 depending on the signs of the structure coefficients. [thx: Martina Vandebroek] o Pass ... to boxplot() and plot() for 1D in plot.candisc o Added diabetes vignette
o Add Wilks.candisc method; this corrects a bug where the values of the stepdown tests for canonical discriminant analysis were calculated incorrectly [thx: Martina Vandebroek] o Now use Wilks.candisc in print.candisc
o respect var.lwd in 2D plot.candisc() o heplot.candisc() gets a rev.axes argument to reverse the axes and a var.pos argument to position variable labels o vectors() now produces nicer arrow head a la matlib::vectors() o added var.pos argument to plot.candisc o allow to suppress likelihood ratio tests in print.candisc
o Added Wine data -- three cultivars with a very simple canonical structure o Added ellipses to plot.candisc(); enhanced candisc.Rd documentation o Added varOrder() for effect ordering in MLMs o plot.candisc() gets a var.labels argument o added method="colmean" and descending=T/F to varOrder() o plot.candisc() gets a rev.axes argument o fixed imports() in NAMESPACE for CRAN checks
o Now use rgl:: in *3d functions and requireNamespace("rgl") o import(car)
o Added vecscale() to more reliably scale the variable vectors in plot.candisc() and heplot.candisc() to the plot bounding box [thx: Uwe Ligges for the code] o Exported vecscale o Added can_lm() to calculate the canonical lm() representation of a term in an mlm
o candisc() now doesn't allow ndim > rank [thx: [email protected]] o In plot.candisc() fixed bug in use of pch and col [thx: [email protected]] and cleaned up code
o Don't use paste0() to avoid dependency on R>2.15.0
o Minor documentation changes o In cancor(), now handle missing data more flexibly via na.rm= and use= o Now suggest corrplot package for cancor.Rd example
o Reorganized print() and summary() methods for cancor() o Smoothed out documentation o Added observation weights to cancor() methods o Added ability to plot X and or Y vectors in heplot.cancor() o Extended example of plot.cancor(), showing variable vectors for X & Y
o Continued development of methods and plots for canonical correlation analysis within the HE plot framework: o Now export scores() and scores.cancor() method o coef.cancor gets a standardize= argument o Added redundancy() for redundancy analysis o Added a plot.cancor() method, visualizing the relations between the Ycan and Xcan variable scores o Added vectors3d() o Added heplot3d() method for cancor objects. o More significantly, re-implemented cancor() as an S3 generic, with a cancor.formula method and the original as the cancor.default method.
o Added cancor and related methods for canonical correlation analysis o Added Wilks() methods for Wilks' Lambda canonical tests o Added vectors() for drawing labeled vectors o Added S3 heplot.cancor() method for cancor objects.
o Fixed buglet in summary.candisc() [thx: David Carlson, [email protected]] o heplot.candisc now uses plot.candisc in the 1 df case
o Extended Description:
o Fixed Authors@R in DESCRIPTION for R 2.14.x
o Updated links to datavis.ca o Updated candisc heplot3d() examples
o switched inst/CHANGES to NEWS o Extended candiscList and Grass examples o Extended package description o Fixed minor buglet in print.candisc
o Fixed predictor.names problem with car_2.0-0 o Added var.cex to heplot.candisc and heplot3d.candisc
o Allow to select canonical dimension in plot(candisc(), which=)
o Added titles.1d argument to plot.candisc to allow customized titles for 1D plots (wish of Manuel Sp?nola)
o Added Wolves data, with examples for 2-way design. o Improved plot for 1D case.
o Michael Friendly now maintainer o now require heplots >= 0.8-3 for use of xlim, ylim, zlim o added asp="iso" to heplot3d.candisc, so default is now equal scaling
o improved documentation o added var.lwd to heplot3d.candisc o changed rgl.* to *3d functions to avoid rgl problems o added suffix= to heplot.candisc and heplot3d.candisc o added graphics=TRUE to menus in *.candiscList functions o added suffix= to plot.candisc
o Initial version released to CRAN.