Skip to contents

Display a categorized reference of all available plot functions in ggforge. Helps users discover which function to use for their data.

Usage

ggforge_gallery(category = NULL, browse = FALSE)

Arguments

category

Optional character string to filter by category. Available categories: "statistical", "enrichment", "single-cell", "genomics", "survival", "network", "specialized". If NULL (default), shows all categories.

browse

If TRUE, opens the pkgdown reference page in a web browser. Default is FALSE.

Value

Invisibly returns a data frame with columns: function_name, category, description.

Examples

# Show all available plot functions
ggforge_gallery()
#> Statistical Plots 
#> ----------------- 
#>   ScatterPlot()        Scatter plot with size/color mapping, highlighting, and transformations
#>   LinePlot()           Line plot with error bars, trend lines, and grouped lines
#>   BarPlot()            Bar plot with grouping, stacking, labels, and trend overlay
#>   BoxPlot()            Box plot with comparisons, paired data, and trend lines
#>   ViolinPlot()         Violin plot with box overlay, comparisons, and paired data
#>   DensityPlot()        Density plot with grouped distributions
#>   JitterPlot()         Jitter/strip plot with comparisons and highlighting
#>   AreaPlot()           Stacked area plot showing composition over categories
#>   Histogram()          Histogram with grouped distributions
#>   QQPlot()             QQ plot for distribution comparison
#>   TrendPlot()          Trend plot combining area and bar visualizations
#>   RidgePlot()          Ridge plot (joy plot) for comparing distributions
#>   DotPlot()            Dot plot with size/color encoding for matrix-like data
#>   LollipopPlot()       Lollipop plot (dot-and-stem chart)
#>   WaterfallPlot()      Waterfall plot for ranked values
#>   SplitBarPlot()       Split/stacked bar plot for composition analysis
#> 
#> Enrichment & Pathway 
#> -------------------- 
#>   EnrichMap()          Network map of enrichment terms with similarity clustering
#>   EnrichNetwork()      Network connecting enrichment terms to their genes
#>   GSEASummaryPlot()    Summary bar/dot plot of GSEA results
#>   GSEAPlot()           Running enrichment score plot for a single gene set
#> 
#> Single-Cell & Spatial 
#> --------------------- 
#>   DimPlot()            Dimension reduction plot (UMAP/t-SNE/PCA) with clustering
#>   FeatureDimPlot()     Feature expression overlay on dimension reduction
#>   VelocityPlot()       RNA velocity field visualization (raw/grid/stream)
#>   SpatImagePlot()      Spatial raster image plot
#>   SpatPointsPlot()     Spatial point plot for cell coordinates
#>   SpatShapesPlot()     Spatial shape/polygon plot (SpatVector)
#>   SpatMasksPlot()      Spatial mask overlay plot
#> 
#> Genomics 
#> -------- 
#>   VolcanoPlot()        Volcano plot for differential expression with labeling
#>   ManhattanPlot()      Manhattan plot for GWAS results
#>   VennDiagram()        Venn diagram for set overlaps (2-7 sets)
#>   UpsetPlot()          UpSet plot for complex set intersections
#> 
#> Survival & Clinical 
#> ------------------- 
#>   KMPlot()             Kaplan-Meier survival curve with risk table and p-value
#>   CoxPlot()            Cox regression forest plot (simple and detailed)
#>   ROCCurve()           ROC curve with AUC and optimal cutoff
#> 
#> Networks & Relationships 
#> ------------------------ 
#>   CorPlot()            Correlation matrix heatmap with significance
#>   ChordPlot()          Chord diagram for directional relationships
#>   SankeyPlot()         Sankey/alluvial diagram for flow data
#>   AlluvialPlot()       Alluvial plot for categorical data flow
#>   Network()            Network graph with customizable nodes and edges
#> 
#> Specialized Plots 
#> ----------------- 
#>   Heatmap()            ComplexHeatmap wrapper with annotations and clustering
#>   RadarPlot()          Radar/spider chart for multivariate comparison
#>   SpiderPlot()         Spider chart (alias for RadarPlot)
#>   PieChart()           Pie chart with label positioning
#>   RingPlot()           Ring/donut chart for proportional data
#>   WordCloudPlot()      Word cloud from text or frequency data
#>   RarefactionPlot()    Rarefaction curve for species diversity
#>   ClustreePlot()       Cluster resolution tree for single-cell clustering
#>   CircosPlot()         Circos plot for circular data visualization
#> 
#> 48 plot functions available. Use ?FunctionName for details.
#> Online docs: https://zaoqu-liu.github.io/ggforge/reference/

# Show only survival & clinical plots
ggforge_gallery("survival")
#> Survival & Clinical 
#> ------------------- 
#>   KMPlot()             Kaplan-Meier survival curve with risk table and p-value
#>   CoxPlot()            Cox regression forest plot (simple and detailed)
#>   ROCCurve()           ROC curve with AUC and optimal cutoff
#> 
#> 3 plot functions available. Use ?FunctionName for details.
#> Online docs: https://zaoqu-liu.github.io/ggforge/reference/

# Open the online reference page
if (FALSE) { # \dontrun{
ggforge_gallery(browse = TRUE)
} # }