Description Usage Arguments Value Examples
View source: R/grouped_barplot.R
Make a grouped segmnet plot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | rxpv.group_segment_plot(
my_data,
class_colname,
Gp1_colname,
Gp2_colname,
order_by,
point_size = 3,
point_gp1_col = "white",
point_gp2_col = "white",
seg_size = 1,
seg_gp1_col = "black",
seg_gp2_col = "orange",
ylim_gp1 = NULL,
ylim_gp2 = NULL
)
|
my_data |
a dataframe that contains |
class_colname |
class column name |
Gp1_colname |
group1 column name |
Gp2_colname |
group2 column name |
order_by |
ordered by gp1 or gp2 column name |
point_size |
point size default 3 |
point_gp1_col |
gp1 color of point; default "white" |
point_gp2_col |
gp2 color of point; default "white" |
seg_size |
segment size |
seg_gp1_col |
gp1 color of segment; default "black" |
seg_gp2_col |
gp2 color of segment; default "orange" |
ylim_gp1 |
ylim for gp1 |
ylim_gp2 |
ylim for gp2 |
a grouped segment plot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## load example data
file_loc <- system.file('extdata', 'example_data.tsv', package = 'rxpViz', mustWork = TRUE)
dfX <- read.table(file_loc, sep="\t", stringsAsFactors = FALSE, header = 1)
## plot the grouped data
rxpv.group_segment_plot(my_data=dfX, class_colname="gene_id",
Gp1_colname="WT",
Gp2_colname="KO",
order_by="WT",
point_size=2,
point_gp1_col="white",
point_gp2_col="white",
seg_size=5,
seg_gp1_col="black",
seg_gp2_col="orange"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.