This function creates a 3-way polar plot using 'ggplot' for a three-class comparison.
radial_ggplot(
polar,
type = 1,
colours = NULL,
label_rows = NULL,
arrow_length = 1,
label_size = 5,
colour_code_labels = FALSE,
label_colour = "black",
grid_colour = "grey80",
grid_width = 0.7,
axis_colour = "black",
axis_width = 1,
axis_title_size = 5,
axis_label_size = 3,
marker_alpha = 0.7,
marker_size = 3,
marker_outline_colour = "white",
marker_outline_width = 0.5,
legend_size = 20,
...
)
Returns a polar 'ggplot' object featuring variables on a tri-axis radial graph
A 'volc3d' object with the p-values between groups of interest
and polar coordinates created by polar_coords
,
deseq_polar
or voom_polar
.
Numeric value whether to use scaled (z-score) or unscaled (fold change) as magnitude. Options are 1 = z-score (default) or 2 = unscaled/fold change.
A vector of colours for the non-significant points and each of the six groups.
A vector of row names or indices to label
The length of label arrows
Font size of labels/annotations (default = 5).
Logical whether label annotations should be colour
coded. If FALSE label_colour
is used.
Colour of annotation labels if not colour coded
The colour of the grid (default="grey80")
The width of the axis lines (default=0.6)
The colour of the grid axes and labels (default="black")
The width of the axis lines (default=1)
Font size for axis titles (default = 5)
Font size for axis labels (default = 3)
The alpha parameter for markers (default = 0.7)
Size of the markers (default = 3)
Colour for marker outline (default = white)
Width for marker outline (default = 0.5)
Size for the legend text (default = 20).
Optional parameters passed to polar_grid
e.g. r_axis_ticks
or axis_angle
Lewis, Myles J., et al. (2019). Molecular portraits of early rheumatoid arthritis identify clinical and treatment response phenotypes. Cell reports, 28:9
polar_coords
data(example_data)
syn_polar <- polar_coords(outcome = syn_example_meta$Pathotype,
data = t(syn_example_rld))
radial_ggplot(polar = syn_polar, label_rows = c("COBL"))
Run the code above in your browser using DataLab