plot_kwd_lines: Plot keywords after enrichment test as lines

Description Usage Arguments Examples

View source: R/plot_kwd_lines.R

Description

Reads the output of link[komics]{kwd_enrichment_multi}, along with a vector with the categories names and plots a linegraph of the keyword ratio between test group and the background. You don't have any options to modify the appearence of the graph, in this version.

Usage

1
plot_kwd_lines(x, group_vec, save_output = FALSE, x_discrete = FALSE)

Arguments

x

A list containing the keyword enrichment output from link[komics]{kwd_enrichment_multi} function. You remove elements of this list, as long as you don't change the column names.

group_vec

A vector containing the labels of each group. Should have the same length with the x argument.

save_output

Defalut value is FALSE. If a character string is added, the output will be saved in your working directory with the specified name, as tab delimited file.

x_discrete

Default valus is FALSE. Use the kwd_vector from kwd_enrichment_multi to order the x axis, accordingly.

Examples

1
2
plot_kwd_lines(x = kwd_enrichment_multi_output,
               group_vec = categories_vector)

tkostas/komics documentation built on May 24, 2019, 7:31 a.m.