create_var_dist_plot: Create distribution plot

Description Usage Arguments Value Author(s) See Also Examples

Description

Create distribution plot for one of the additional variable or the percentage of the species present in the supertaxa.

Usage

1
create_var_dist_plot(data, var_name, var_type, percent, dist_text_size)

Arguments

data

dataframe contains data for plotting

var_name

name of the variable that need to be analyzed (either name of variable 1 or variable 2 or "percentage of present taxa")

var_type

type of variable (either "var1", "var2" or "presSpec")

percent

range of percentage cutoff

dist_text_size

text size of the distribution plot

Value

A distribution plot as a ggplot object

Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

See Also

main_long_raw, create_variable_distribution_data, create_variable_distribution_data_subset, create_percentage_distribution_data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data("main_long_raw", package="phyloprofile")
data <- create_variable_distribution_data(
    main_long_raw, 0, 1, 0.5, 1
)
var_name <- "Variable abc"
var_type <- "var1"
percent <- c(0,1)
dist_text_size <- 12
create_var_dist_plot(
    data,
    var_name,
    var_type,
    percent,
    dist_text_size
)

trvinh/test documentation built on May 9, 2019, 2:26 a.m.