Create a parallel coordinate plot
parallel_coordinate_plot.Rd
Plot the correlation difference between two comparison groups into a parallel coordinate plot. The function
correlation_diff_permutation()
must be run first in order to generate results to plot.
Usage
parallel_coordinate_plot(
e,
permutation_comparison = "AD_vs_control",
channels = c("cfos", "eyfp", "colabel"),
colors = c("#be0000", "#00782e", "#f09b08"),
x_label_group_1 = NULL,
x_label_group_2 = NULL,
height = 10,
width = 10,
print_plot = TRUE,
save_plot = TRUE,
reverse_group_order = FALSE,
force = 1,
plt_theme = NULL,
label_size = 30,
image_ext = ".png",
nudge_x = 2:5
)
Arguments
- e
experiment object
- permutation_comparison
The name of the correlation group comparisons to plot.
- channels
(str, default = c("cfos", "eyfp", "colabel")) channels to plot
- colors
(str, default = c("#be0000", "#00782e", "#f09b08")) Hexadecimal codes corresponding to the channels (respectively) to plot.
- x_label_group_1
(str, NULL) The label for the first group in the permutation analysis. Note: this is to customize the graph labels. It does not reverse the group order.
- x_label_group_2
(str, NULL) The label for the second group in the permutaiton analysis. Note: this is to customize the graph labels. It does not reverse the group order.
- height
height of the plot in inches.
- width
width of the plot in inches.
- print_plot
(bool, default = TRUE) Whether to display the plot (in addition to saving the plot)
- save_plot
(bool, default = TRUE) Save into the figures subdirectory of the the experiment object output folder.
- reverse_group_order
(bool, default = TRUE) Reverse the order of the groups on the x-axis.
- force
(default =1) Force of the text repel between text labels.
- plt_theme
(default = NULL) Add a
ggplot2::theme()
to the plot. If NULL, the default is taken.- label_size
(default = 30) Default font size for region labels.
- image_ext
(default = ".png") image extension to save the plot as.
- nudge_x
(vec, default = 2:5) a vector determining the jitter between labels.