Learn R Programming

mpwR (version 0.1.5.1)

plot_radarchart: Radar chart

Description

Plot radar chart of summary statistics.

Usage

plot_radarchart(input_df)

Value

This function returns a radar chart as htmlwidget.

Arguments

input_df

Data frame with summary information. Analysis column and at least one category column is required.

Author

Oliver Kardell

Details

Summary results are displayed via radar chart. Each analysis has its own trace.

Examples

Run this code
# Load libraries
library(plotly)
library(tibble)

# Example data
data <- tibble::tibble(
 Analysis = c("A", "B"),
 "Median ProteinGroup.IDs [abs.]" = c(5, 10),
 "Median Protein.IDs [abs.]" = c(5, 10),
 "Median Peptide.IDs [abs.]" = c(5, 10),
 "Median Precursor.IDs [abs.]" = c(5, 10),
 "Full profile - Precursor.IDs [abs.]" = c(5, 10),
 "Full profile - Peptide.IDs [abs.]" = c(5, 10),
 "Full profile - Protein.IDs [abs.]" = c(5, 10),
 "Full profile - ProteinGroup.IDs [abs.]" = c(5, 10),
 "Full profile - Precursor.IDs [%]" = c(5, 10),
 "Full profile - Peptide.IDs [%]" = c(5, 10),
 "Full profile - Protein.IDs [%]" = c(5, 10),
 "Full profile - ProteinGroup.IDs [%]" = c(5, 10),
 "Precursor.IDs [abs.] with a CV Retention time < 5 [%]" = c(5, 10),
 "Proteingroup.IDs [abs.] with a CV LFQ < 20 [%]" = c(NA, 10),
 "Peptide.IDs [abs.] with a CV LFQ < 20 [%]" = c(NA, 10),
 "Peptide IDs with zero missed cleavages [abs.]" = c(5, 10),
 "Peptide IDs with zero missed cleavages [%]" = c(5, 10)
)

# Plot
plot_radarchart(
  input_df = data
)

Run the code above in your browser using DataLab