S3 method to plot output for LESH model interaction result in lesh()
.
# S3 method for lesh_result
plot(
x,
pie = TRUE,
scatter = FALSE,
scatter_alpha = 1,
pieradius_factor = 15,
pielegend_x = 0.99,
pielegend_y = 0.1,
pielegend_num = 3,
...
)
A ggplot2 layer.
x Return by lesh()
.
(optional) Whether to draw the interaction contributions. Default is TRUE
.
(optional) Whether to draw the interaction direction diagram. Default is FALSE
.
(optional) Picture transparency. Default is 1
.
(optional) The radius expansion factor of interaction contributions pie plot. Default is 15
.
(optional) The X-axis relative position of interaction contributions pie plot legend. Default is 0.99
.
(optional) The Y-axis relative position of interaction contributions pie plot legend. Default is 0.1
.
(optional) The number of interaction contributions pie plot legend. Default is 3
.
(optional) Other arguments passed to ggplot2::theme()
.
Wenbo Lv lyu.geosocial@gmail.com