plot.dominanceAnalysis: Plot for a 'dominanceAnalysis' object

Description Usage Arguments Value Examples

View source: R/plot.dominanceAnalysis.R

Description

Plot for a dominanceAnalysis object

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'dominanceAnalysis'
plot(
  x,
  which.graph = c("general", "complete", "complete_no_facet", "conditional"),
  fit.function = NULL,
  complete_flipped_axis = TRUE,
  ...
)

Arguments

x

a dominanceAnalysis object

which.graph

which graph to plot

fit.function

name of the fit indices to retrieve. If NULL, first index will be used

complete_flipped_axis

For complete and complete_no_facet plot, set the R2 on X axis to allow easier visualization

...

unused

Value

a ggplot object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(longley)
lm.1<-lm(Employed~.,longley)
da<-dominanceAnalysis(lm.1)
# By default, plot() shows the general dominance plot
plot(da)
# Parameter which.graph defines which type of dominance to plot
plot(da,which.graph='conditional')
plot(da,which.graph='complete')
# Parameter complete_flipped_axis allows to flip axis on complete plot, to better visualization
plot(da,which.graph='complete', complete_flipped_axis=TRUE)
plot(da,which.graph='complete', complete_flipped_axis=FALSE)

dominanceanalysis documentation built on Jan. 13, 2021, 3:47 p.m.