show_grid: Plots grid objects for inspection using plotly

Description Usage Arguments Value References Examples

View source: R/show_grid.R

Description

This function creates an interactive grids in polar and cylindrical coordinates

Usage

1
show_grid(grid, plot_height = 700, axis_angle = 0)

Arguments

grid

A grid object produced by polar_grid.

plot_height

The plot height in px (default=700),

axis_angle

The angle in radians at which to add axis (default=0).

Value

Returns a list containing a polar and cylindrical coordinate system.

References

Lewis, Myles J., et al. (2019). Molecular portraits of early rheumatoid arthritis identify clinical and treatment response phenotypes. Cell reports, 28:9

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
data(example_data)
syn_polar <- polar_coords(sampledata = syn_example_meta,
                       contrast = "Pathotype",
                       groups = NULL,
                       pvalues = syn_example_p,
                       expression = syn_example_rld,
                       p_col_suffix = "pvalue",
                       padj_col_suffix = "padj",
                       non_sig_name = "Not Significant",
                       multi_group_prefix = "LRT",
                       significance_cutoff = 0.01,
                       fc_col_suffix='log2FoldChange',
                       fc_cutoff = 0.3)

grid <- polar_grid(r_vector=syn_polar@polar$r_zscore,
        z_vector=-log(syn_polar@pvalues$LRT_pvalue),
        r_axis_ticks = NULL,
        z_axis_ticks = NULL)
p <- show_grid(grid)
p$polar
p$cyl

volcano3D documentation built on July 1, 2020, 9:56 p.m.