Description Usage Arguments Value Author(s) See Also Examples
Create distribution plot for one of the additional variable or the percentage of the species present in the supertaxa.
1 | create_var_dist_plot(data, var_name, var_type, percent, dist_text_size)
|
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 |
A distribution plot as a ggplot object
Vinh Tran tran@bio.uni-frankfurt.de
main_long_raw
,
create_variable_distribution_data
,
create_variable_distribution_data_subset
,
create_percentage_distribution_data
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
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.