View source: R/visualize_metrics.R
visualize_metrics | R Documentation |
Visualize summarized metrics for reference data and synthetic data
visualize_metrics( simsrt, metric_type = c("all", "genewise", "locwise", "GeneMean", "GeneVar", "GeneCV", "GeneZeroProp", "LocZeroProp", "LocLibSize"), colorpalette = "Set3", axistextsize = 12 )
simsrt |
A SRTsim object |
metric_type |
Specification of metrics to be plotted. Default value is 'all', which will plot all six metrics: including four gene-wise metrics and two location-wise metrics. "genewise" will produce violin plots for all four gene-wise metrics; "locwise" will produce violin plots for all two location-wise metrics; "GeneMean", "GeneVar", "GeneCV", "GeneZeroProp", "LocZeroProp", and "LocLibSize" will produce single violin plot for the corresponding metric. |
colorpalette |
Specification of color palette to be passed to |
axistextsize |
Specification of axis font size. Default is 12. |
Returns a list of ggplots
## Create a simSRT object toySRT <- createSRT(count_in=toyData$toyCount,loc_in = toyData$toyInfo) set.seed(1) ## Estimate model parameters for data generation toySRT <- srtsim_fit(toySRT,sim_schem="tissue") ## Generate synthetic data with estimated parameters toySRT <- srtsim_count(toySRT) ## Compute metrics toySRT <- compareSRT(toySRT) ## Visualize Metrics visualize_metrics(toySRT)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.