Package: ggalign 0.0.5.9000

ggalign: A 'ggplot2' Extension for Consistent Axis Alignment

A 'ggplot2' extension offers various tools for organizing and arranging plots. It is designed to consistently align a specific axis across multiple 'ggplot' objects, making it especially useful for plots requiring data order manipulation. A typical use case includes organizing combinations like a dendrogram and a heatmap.

Authors:Yun Peng [aut, cre], Shixiang Wang [aut]

ggalign_0.0.5.9000.tar.gz
ggalign_0.0.5.9000.zip(r-4.5)ggalign_0.0.5.9000.zip(r-4.4)ggalign_0.0.5.9000.zip(r-4.3)
ggalign_0.0.5.9000.tgz(r-4.4-any)ggalign_0.0.5.9000.tgz(r-4.3-any)
ggalign_0.0.5.9000.tar.gz(r-4.5-noble)ggalign_0.0.5.9000.tar.gz(r-4.4-noble)
ggalign_0.0.5.9000.tgz(r-4.4-emscripten)ggalign_0.0.5.9000.tgz(r-4.3-emscripten)
ggalign.pdf |ggalign.html
ggalign/json (API)
NEWS

# Install 'ggalign' in R:
install.packages('ggalign', repos = c('https://yunuuuu.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/yunuuuu/ggalign/issues

Pkgdown site:https://yunuuuu.github.io

On CRAN:

complex-heatmapsdendrogramdendrogram-heatmapggplotggplot-extensionggplot2heatmapheatmap-visualizationheatmapsmarginal-plotsoncoplotoncoprinttanglegramupsetupsetplot

6.91 score 223 stars 27 scripts 665 downloads 143 exports 28 dependencies

Last updated 5 hours agofrom:8fd5322226. Checks:1 OK, 6 NOTE. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKJan 18 2025
R-4.5-winNOTEJan 18 2025
R-4.5-linuxNOTEJan 18 2025
R-4.4-winNOTEJan 18 2025
R-4.4-macNOTEJan 18 2025
R-4.3-winNOTEJan 18 2025
R-4.3-macNOTEJan 18 2025

Exports:.link_draw.mark_drawactivealignAlignalign_dendroalign_groupalign_hclustalign_kmeansalign_orderalign_panelalign_phyloalign_plotsalign_reorderalignpatchanno_bottomanno_leftanno_rightanno_topareacircle_continuouscircle_discretecircle_layoutcircle_switchcontinuous_limitscross_linkcross_markcross_nonedraw_key_drawdraw_key_draw2element_curveelement_polygonelement_repelement_rep_lenelement_vecelement_vec_recycleelement_vec_repelement_vec_rep_eachelement_vec_slicefortify_data_framefortify_matrixfree_alignfree_borderfree_guidefree_labfree_spacefree_vpgeom_drawgeom_draw2geom_piegeom_rect3dgeom_subrectgeom_subtilegeom_tile3dggalignggalign_attrggalign_data_setggalign_lvlsggalign_statggalignGrobggcrossggfreeggheatmapggmarkggoncoplotggpanelggsideggupsetggwrapgparhclust2heatmap_layouthmannoinsetis_circle_layoutis_ggheatmapis_heatmap_layoutis_layoutis_quad_layoutis_stack_crossis_stack_layoutlayer_orderlayout_annotationlayout_designlayout_titlelink_drawlink_linelink_tetragonmark_drawmark_linemark_tetragonmark_trianglememo_ordernew_tuneno_expansionorder2pair_linkspatchpatch_titlesquad_activequad_alignbquad_alignhquad_alignvquad_annoquad_continuousquad_discretequad_freequad_initquad_layoutquad_switchrange_linkraster_magickread_examplescale_draw_manualscheme_alignscheme_datascheme_themeshowstack_activestack_alignstack_alignhstack_alignvstack_continuousstack_continuoushstack_continuousvstack_crossstack_crosshstack_crossvstack_discretestack_discretehstack_discretevstack_freestack_freehstack_freevstack_horizontalstack_layoutstack_switchstack_verticaltheme_no_axestunetune_dataunitwith_quad

Dependencies:clicolorspacefansifarverggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerrlangscalestibbleutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Define the links to connect a pair of observations.link_draw
Define the links to connect the marked observations.mark_draw
Plot Adding Context Settingsactive
Plot dendrogram treealign_dendro
Group and align observations based on a group vectoralign_group
Reorder or Group observations based on hierarchical clusteringalign_hclust
Split observations by k-means clustering groups.align_kmeans
Order observations based on weightsalign_order
Plot Phylogenetics treealign_phylo
Arrange multiple plots into a gridalign_plots
Reorders layout observations based on specific statistics.align_reorder
Define the plotting areas in 'align_plots'area
Arrange plots in a circular layout by aligning continuous axiscircle_continuous
Arrange plots in a circular layout by aligning discrete axiscircle_discrete
Arrange plots in a circular layoutcircle_layout
Determine the active context of circle layoutcircle_switch
Set continuous limits for the layoutcontinuous_limits
Add a plot to connect selected observationscross_link
Add a plot to annotate observationscross_mark
Reset layout ordering and panel groupcross_none
Key glyphs for legendsdraw_key_draw
Key glyphs for legendsdraw_key_draw2
Theme curve elementselement_curve
Theme Polygon elementselement_polygon
Apply a function to the fields of an element objectelement_rep element_rep_len element_vec element_vec_recycle element_vec_rep element_vec_rep_each element_vec_slice
Build a data framefortify_data_frame
Build a data framefortify_data_frame.character fortify_data_frame.complex fortify_data_frame.logical fortify_data_frame.numeric
Build a data framefortify_data_frame.default
Build a data framefortify_data_frame.dendrogram fortify_data_frame.hclust
Build a data framefortify_data_frame.DelayedMatrix fortify_data_frame.Matrix fortify_data_frame.matrix
Build a data framefortify_data_frame.phylo
Build a Matrixfortify_matrix
Build a Matrixfortify_matrix.default
Build a matrix from a maftools objectfortify_matrix.GISTIC
Build a Matrix for UpSet plotfortify_matrix.list fortify_matrix.list_upset
Build a matrix from a maftools objectfortify_matrix.MAF fortify_matrix.MAF_pathways
Build a matrix from a matrixfortify_matrix.matrix
Build a Matrix for UpSet plotfortify_matrix.matrix_upset
Build a matrix from 'phylo' objectfortify_matrix.phylo
Free from alignmentfree_align free_border free_guide free_lab free_space free_vp
Layer with Grid or Functiongeom_draw
Layer with customized draw functiongeom_draw2
Pie chartsgeom_pie
Add z-aesthetic for geom_tilegeom_rect3d geom_tile3d
Subdivide Rectanglesgeom_subrect geom_subtile
Add ggplot by Aligning discrete or continuous variableggalign
Get Data from the Attribute Attached by ggalignggalign_attr ggalign_lvls
Attach supplementary data and levels for ggalignggalign_data_set
Get the statistics from the layoutggalign_stat ggalign_stat.QuadLayout ggalign_stat.StackLayout
Generate a plot grob.ggalignGrob
Connect two layout crosswiseggcross
Add ggplot to layout without alignmentggfree ggfree.default
Add a plot to annotate selected observationsggmark
Create an OncoPrintggoncoplot ggoncoplot.default
Create an UpSet plotggupset
Wrap Arbitrary Graphics to ggplotggwrap
Generate Tree Structures with Hierarchical Clusteringhclust2
Create a heatmapggheatmap heatmap_layout
Create a ggplot insetinset
Reports whether 'x' is layout objectis_circle_layout is_ggheatmap is_heatmap_layout is_layout is_quad_layout is_stack_cross is_stack_layout
Change the layer adding orderlayer_order
Modify components of the layoutlayout_annotation
Define the grid to compose plots inlayout_design
Annotate the whole layoutlayout_title
Layout operator&.CircleLayout &.ggheatmap &.ggside &.HeatmapLayout &.QuadLayout &.StackCross &.StackLayout +.CircleLayout +.ggheatmap +.ggside +.HeatmapLayout +.QuadLayout +.StackCross +.StackLayout -.CircleLayout -.ggheatmap -.ggside -.HeatmapLayout -.QuadLayout -.StackCross -.StackLayout layout-operator
Define the links to connect a pair of observationslink_draw
Link the paired observations with a linelink_line
Link the paired observations with a quadrilaterallink_tetragon
Define the links to connect the marked observationsmark_draw
Link the observations and the panel with a linemark_line
Link the observations and the panel with a quadrilateralmark_tetragon
Link the observations and the panel with a trianglemark_triangle
Sort matrix for better visualizationmemo_order
Change the shape of the input objectnew_tune tune_data
Remove scale expansionno_expansion
Ordering Permutationorder2 order2.dendrogram order2.hclust order2.memo_weights order2.phylo order2.ser_permutation order2.ser_permutation_vector
Helper function to create pairs of observation groupspair_links range_link
Add patch titles to plot borderspatch_titles
Convert Object into a Grobpatch.alignpatches
Convert Object into a Grobpatch.formula patch.function
Convert Object into a Grobpatch.ggplot
Convert Object into a Grobpatch.gList patch.grob
Convert Object into a Grobpatch.Heatmap patch.HeatmapAnnotation patch.HeatmapList
Convert Object into a Grobpatch.patch
Convert Object into a Grobpatch.patch_ggplot
Convert Object into a Grobpatch.patchwork
Convert Object into a Grobpatch.pheatmap
Convert Object into a Grobpatch.recordedplot
Convert Object into a Grobpatch.trellis
Determine the Active Context of Quad-Layoutanno_bottom anno_left anno_right anno_top quad_active quad_anno
Arrange plots in the quad-side of a main plot by aligning continuous axisggside quad_continuous quad_free
Arrange plots in the quad-side of a main plot by aligning discrete axisquad_alignb quad_discrete
Arrange plots in the quad-side of a main plotquad_alignh quad_alignv quad_layout
Determine the Active Context of Quad-Layouthmanno quad_switch
Rasterize the input objectraster_magick
Read Example Dataread_example
Scale for 'draw' aestheticscale_draw_manual
Align Specifications in the Layoutscheme_align
Plot data Specificationsscheme_data
Plot default themescheme_theme
Arrange plots horizontally or vertically by aligning continuous axisstack_continuous stack_continuoush stack_continuousv stack_free stack_freeh stack_freev
Arrange plots crosswise horizontally or verticallystack_cross stack_crossh stack_crossv
Arrange plots horizontally or vertically by aligning discrete axisstack_align stack_alignh stack_alignv stack_discrete stack_discreteh stack_discretev
Arrange plots horizontally or verticallystack_horizontal stack_layout stack_vertical
Determine the active context of stack layoutstack_active stack_switch
Remove axis elementstheme_no_axes
Change the shape of the input objecttune
Convert the shape of a list for fortify methodtune.list
Convert the shape of a MAF for fortify methodtune.MAF
Convert the shape of a matrix for fortify methodtune.matrix
Modify operated Context in 'quad_layout()'with_quad