Description Usage Arguments Details Examples
View source: R/lipidome_comparison_visualization.R
'spider chart' takes a minimized data frame (one value per group) and prints a spider chart
1 2 3 4 5 6 | spider_chart(
minimized_df,
title = "Spider chart",
legend_lab = rownames(minimized_df),
out_path = "none"
)
|
minimized_df |
data frame. A data frame that contains only one value per group and variable. Most often this will be a data frame of means calculated from another data frame. |
title |
string. Main title of the chart. Default = "Spider chart" |
legend_lab |
vector. Lables. Default: rownames(minimized_df) |
out_path |
string. Path to save spider chart to png. If out_path is empty, the spider chart is printed to the device. |
This function takes a data frame of with one value per group (i.e. calculate mean groupwise). This minimized data frame is used to draw a spider chart (also radar chart odr network plot). The ideal numer of parameters for a spider chart is <= 10. Also the shape of the graph depends on the order of parameters. If the data has large differences in size, normalizing or scaling the data is necessary. Doesn't work with non normal data.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.