Suppress cut axis

I use the featurePlot function to create a grid graph. X and Y axes are displayed in diagonal boxes (see Figure). I want to crush these axes - both marks and marks.


enter image description here


Thought I could set the $ draw scales to NULL, but that didn't work. Here is what I tried:
 trellisDefaultSettings = trellis.par.get() trellis.par.set(theme=transparentTheme(trans = .4), scales$draw=FALSE, warn=FALSE) featurePlot(x = features[, -1 * ncol(features)], y = features$SpeciesName, plot = "pairs", auto.key = list(columns = 5)) 
+5
source share
1 answer

You can use the pscales argument.

Example

 library(caret) featurePlot(x = iris[, -1 * ncol(iris)], y = iris$Species, plot = "pairs", auto.key = list(columns = 3), pscales=FALSE) 

From a look at the code for featurePlot you can see that it calls lattice::splom for the pairs chart. The help page for this function describes which argument to use (see also ?panel.pairs )

+4
source

All Articles