Learn R Programming

gdverse (version 1.3-3)

plot.factor_detector: plot factor detector result

Description

S3 method to plot output for factor detector in geodetector().

Usage

# S3 method for factor_detector
plot(x, slicenum = 2, alpha = 0.95, keep = TRUE, qlabelsize = 3.88, ...)

Value

A ggplot2 layer.

Arguments

x

Return by geodetector().

slicenum

(optional) The number of labels facing inward. Default is 2.

alpha

(optional) Confidence level. Default is 0.95.

keep

(optional) Whether to keep Q-value results for insignificant variables, default is TRUE.

qlabelsize

(optional) Set the font size of the q-value text labels in the plot.

...

(optional) Other arguments passed to ggplot2::theme().