Package: ggh4x 0.3.1.9000

ggh4x: Hacks for 'ggplot2'

A 'ggplot2' extension that does a variety of little helpful things. The package extends 'ggplot2' facets through customisation, by setting individual scales per panel, resizing panels and providing nested facets. Also allows multiple colour and fill scales per plot. Also hosts a smaller collection of stats, geoms and axis guides.

Authors:Teun van den Brand [aut, cre]

ggh4x_0.3.1.9000.tar.gz
ggh4x_0.3.1.9000.zip(r-4.7)ggh4x_0.3.1.9000.zip(r-4.6)ggh4x_0.3.1.9000.zip(r-4.5)
ggh4x_0.3.1.9000.tgz(r-4.6-any)ggh4x_0.3.1.9000.tgz(r-4.5-any)
ggh4x_0.3.1.9000.tar.gz(r-4.7-any)ggh4x_0.3.1.9000.tar.gz(r-4.6-any)
ggh4x_0.3.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
ggh4x/json (API)

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

Bug tracker:https://github.com/teunbrand/ggh4x/issues

Pkgdown/docs site:https://teunbrand.github.io

On CRAN:

Conda:

ggplot-extensionggplot2

13.94 score 679 stars 51 packages 6.7k scripts 21k downloads 1 mentions 83 exports 17 dependencies

Last updated from:63c91b7867. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK187
source / vignettesOK278
linux-release-x86_64OK172
macos-release-arm64OK206
macos-oldrel-arm64OK242
windows-develOK154
windows-releaseOK164
windows-oldrelOK156
wasm-releaseOK113

Exports:at_panelcenter_limitscoord_axes_insideCoordAxesInsidedistribute_argselem_list_rectelem_list_textelement_part_rectfacet_grid2facet_manualfacet_nestedfacet_nested_wrapfacet_wrap2FacetGrid2FacetManualFacetNestedFacetNestedWrapfacetted_pos_scalesFacetWrap2force_panelsizesgeom_boxgeom_outline_pointgeom_pointpathgeom_polygonrastergeom_rectmargingeom_text_aimedgeom_tilemarginGeomBoxGeomPointpathGeomPointPathGeomPolygonRasterGeomRectMarginGeomTextAimedGeomTileMarginggsubsetguide_axis_colorguide_axis_colourguide_axis_manualguide_axis_minorguide_axis_nestedguide_axis_scalebarguide_axis_truncatedguide_dendroguide_stringlegendGuideStringlegendhelp_secondaryposition_disjoint_rangesposition_lineartransPositionDisjointRangesPositionLinearTranssave_plotscale_colour_multiscale_fill_multiscale_listedscale_x_dendrogramscale_x_facetscale_x_manualscale_y_dendrogramscale_y_facetscale_y_manualsep_discretestat_centroidstat_differencestat_funxystat_midpointstat_rlestat_rollingkernelstat_theodensityStatDifferenceStatFunxyStatRleStatRollingkernelStatTheoDensityStripstrip_nestedstrip_splitstrip_tagstrip_themedstrip_vanillaStripNestedStripSplitStripThemedweave_factors

Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerrlangS7scalesvctrsviridisLitewithr

Introduction to ggh4x
Getting started | Further reading

Last update: 2025-05-30
Started: 2020-08-12

Facets
Extended facets | Wrap | Grid | Nested facets | Nesting lines | Relation to facet_grid() | Variant for facet_wrap() | Manual facets | The base-R layout() function | The design argument | Placement rules | A word of warning | Strips | Vanilla strips | Themed strips | Nested strips | Position scales | Lists of scales | Formula notation | Convenience notation | Interaction with stats | Panel sizes

Last update: 2024-12-15
Started: 2020-07-19

Miscellaneous
Multiple colour scales | String legends | Point paths | Polygon rasters | Aiming text | Axes inside panel

Last update: 2024-12-15
Started: 2021-01-10

Statistics
Theoretical densities | Continuous distributions | Discrete distributions | Comparing different distributions | Rolling kernels | Examples | Relation to kernel density estimates | Rolling mean | Difference | Motivation | Interpolation | Function X, Y | Centroids and midpoints | Cropping data | Run length encoding | Using computed variables

Last update: 2023-04-08
Started: 2020-07-30

Readme and manuals

Help Manual

Help pageTopics
Constrain layer to panelsat_panel
Center limitscenter_limits
Cartesian coordinates with interior axescoord_axes_inside
Deprecated functionsdeprecated ggsubset guide_axis_color guide_axis_colour guide_axis_logticks guide_axis_manual guide_axis_minor guide_axis_nested guide_axis_scalebar guide_axis_truncated guide_dendro scale_x_dendrogram scale_y_dendrogram
Element list constructorsdistribute_args elem_list_rect elem_list_text
Partial rectangle theme elementelement_part_rect
Extended grid facetsfacet_grid2
Manual layout for panelsfacet_manual
Layout panels in a grid with nested stripsfacet_nested
Ribbon of panels with nested strips.facet_nested_wrap
Extended wrapped facetsfacet_wrap2
Set individual scales in facetsfacetted_pos_scales
Force a facetted plot to have specified panel sizesforce_panelsizes
Flexible rectanglesgeom_box
Points with outlinegeom_outline_point
Point Pathsgeom_pointpath
Polygon parameterisation for rastersgeom_polygonraster
Rectangular rugs in the marginsgeom_rectmargin geom_tilemargin
Aimed textgeom_text_aimed
ggh4x extensions to ggplot2CoordAxesInside FacetGrid2 FacetManual FacetNested FacetNestedWrap FacetWrap2 GeomBox GeomPointPath GeomPointpath GeomPolygonRaster GeomRectMargin GeomTextAimed GeomTileMargin ggh4x_extensions GuideStringlegend PositionDisjointRanges PositionLinearTrans StatDifference StatFunxy StatRle StatRollingkernel StatTheoDensity Strip StripNested StripSplit StripThemed
String legendguide_stringlegend
Secondary axis helperhelp_secondary
Segregating overlapping rangesposition_disjoint_ranges
Linearly transform coordinatesposition_lineartrans
Save a ggplotsave_plot
Position scales for individual panels in facetsscale_facet scale_x_facet scale_y_facet
Multiple gradient colour scalesscale_colour_multi scale_fill_multi
Add a list of scales for non-standard aestheticsscale_listed
Manual position scalesscale_x_manual scale_y_manual
Separator for discrete grouped labelssep_discrete
Difference ribbonstat_difference
Apply function to position coordinatesstat_centroid stat_funxy stat_midpoint
Run length encodingstat_rle
Rolling Kernelstat_rollingkernel
Fitted theoretical densitystat_theodensity
Nested stripsstrip_nested
Split stripsstrip_split
Strips as tagsstrip_tag
Strip with themed boxes and textsstrip_themed
Default stripsstrip_vanilla
Theme extensionsggh4x_theme_elements theme_extensions
Bind together factorsweave_factors