This function plots the 95
correlation coefficient generated by the function corr_ci
.
plot_ci(
object,
x.lab = NULL,
y.lab = NULL,
y.lim = NULL,
y.breaks = waiver(),
shape = 21,
col.shape = "black",
fill.shape = "orange",
size.shape = 2.5,
width.errbar = 0.5,
main = TRUE,
invert.axis = TRUE,
reorder = TRUE,
plot_theme = theme_metan()
)
An object generate by the function corr_ci()
The label of x-axis, set to 'Pairwise combinations'. New
arguments can be inserted as x.lab = 'my label'
.
The label of y-axis, set to 'Pearson's correlation coefficient'
New arguments can be inserted as y.lab = 'my label'
.
The range of x-axis. Default is NULL
. The same arguments
than x.lim
can be used.
The breaks to be plotted in the x-axis. Default is
authomatic breaks
. The same arguments than x.breaks
can be
used.
The shape point to represent the correlation coefficient.
Default is 21
(circle). Values must be between 21-25
:
21
(circle), 22
(square), 23
(diamond), 24
(up
triangle), and 25
(low triangle).
The color for the shape edge. Set to black
.
The color to fill the shape. Set to orange
.
The size for the shape point. Set to 2.5
.
The width for the errorbar showing the CI.
The title of the plot. Set to main = FALSE
to ommite the
plot title.
Should the names of the pairwise correlation appear in the y-axis?
Logical argument. If TRUE
(default) the pairwise
combinations are reordered according to the correlation coefficient.
The graphical theme of the plot. Default is
plot_theme = theme_metan()
. For more details, see
theme
.
An object of class gg, ggplot
.
# NOT RUN {
library(metan)
library(dplyr)
data_ge2 %>%
select(contains('E')) %>%
corr_ci() %>%
plot_ci()
# }
Run the code above in your browser using DataLab