Package: ggpp 0.5.8-1

Pedro J. Aphalo

ggpp:Grammar Extensions to 'ggplot2'

Extensions to 'ggplot2' respecting the grammar of graphics paradigm. Geometries: geom_table(), geom_plot() and geom_grob() add insets to plots using native data coordinates, while geom_table_npc(), geom_plot_npc() and geom_grob_npc() do the same using "npc" coordinates through new aesthetics "npcx" and "npcy". Statistics: select observations based on 2D density. Positions: radial nudging away from a center point and nudging away from a line or curve; combined stacking and nudging; combined dodging and nudging.

Authors:Pedro J. Aphalo [aut, cre], Kamil Slowikowski [ctb], Michał Krassowski [ctb], Daniel Sabanés Bové [ctb], Stella Banjo [ctb]

ggpp_0.5.8-1.tar.gz
ggpp_0.5.8-1.tar.gz(r-4.5-noble)ggpp_0.5.8-1.tar.gz(r-4.4-noble)
ggpp_0.5.8-1.tgz(r-4.4-emscripten)ggpp_0.5.8-1.tgz(r-4.3-emscripten)
ggpp.pdf |ggpp.html
ggpp/json (API)
NEWS

# Installggpp in R:
install.packages('ggpp',repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/aphalo/ggpp/issues

Datasets:

112 exports 3.62 score 40 dependencies 24 dependents 20.1k downloads

Last updated 4 days agofrom:34251e3639

Exports:annotateas_npcas_npcxas_npcycompute_npccompute_npcxcompute_npcydark_or_lightdraw_key_label_sdraw_key_text_sgeom_grobgeom_grob_npcgeom_label_npcgeom_label_pairwisegeom_label_sgeom_plotgeom_plot_npcgeom_point_sgeom_quadrant_linesgeom_tablegeom_table_npcgeom_text_npcgeom_text_pairwisegeom_text_sgeom_vhlinesgeom_x_margin_arrowgeom_x_margin_grobgeom_x_margin_pointgeom_y_margin_arrowgeom_y_margin_grobgeom_y_margin_pointGeomGrobGeomGrobNpcGeomLabelNpcGeomLabelPairwiseGeomLabelSGeomPlotGeomPlotNpcGeomPointSGeomQuadrantLinesGeomTableGeomTableNpcGeomTextNpcGeomTextPairwiseGeomTextSGeomVHLinesGeomXMarginArrowGeomXMarginGrobGeomXMarginPointGeomYMarginArrowGeomYMarginGrobGeomYMarginPointposition_dodge_keepposition_dodge2_keepposition_dodge2nudgeposition_dodgenudgeposition_fill_keepposition_fillnudgeposition_jitter_keepposition_jitternudgeposition_nudge_centerposition_nudge_centreposition_nudge_keepposition_nudge_lineposition_nudge_toposition_stack_keepposition_stack_minmaxposition_stacknudgePositionFillAndNudgePositionNudgeCenterPositionNudgeLinePositionNudgeToscale_npcx_continuousscale_npcy_continuousstat_apply_groupstat_centroidstat_dens1d_filterstat_dens1d_filter_gstat_dens1d_labelsstat_dens2d_filterstat_dens2d_filter_gstat_dens2d_labelsstat_fmt_tbstat_functionsstat_group_countsstat_panel_countsstat_quadrant_countsstat_summary_xyStatApplyGroupStatDens1dFilterStatDens1dFilterGStatDens1dLabelsStatDens2dFilterStatDens2dFilterGStatDens2dLabelsStatFmtTbStatFunctionsStatGroupCountsStatPanelCountsStatQuadrantCountstry_data_frametry_tibblettheme_gtbwttheme_gtdarkttheme_gtdefaultttheme_gtlightttheme_gtminimalttheme_gtplainttheme_gtsimplettheme_gtstripesttheme_setwrap_labels

Dependencies:clicolorspacecpp11dplyrfansifarvergenericsggplot2gluegridExtragtableisobandlabelinglatticelifecyclelubridatemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigpolynomR6RColorBrewerrlangscalesstringistringrtibbletidyselecttimechangeutf8vctrsviridisLitewithrxtszoo

Combining repulsion and nudging

Rendered fromnudge-examples.Rmdusingknitr::rmarkdownon Jul 02 2024.

Last update: 2024-07-02
Started: 2022-12-05

Extensions to the Grammar of Graphics

Rendered fromgrammar-extensions.Rmdusingknitr::rmarkdownon Jul 02 2024.

Last update: 2024-06-27
Started: 2021-05-28

Readme and manuals

Help Manual

Help pageTopics
ggpp: Grammar Extensions to 'ggplot2'ggpp-package ggpp
Annotations supporting NPCannotate
Birch seedlings' sizebirch.df birch_dw.df
Compute NPC coordinatesas_npc as_npcx as_npcy compute_npc compute_npcx compute_npcy
Chose between dark and light colordark_or_light
Inset graphical objectsgeom_grob geom_grob_npc
Text with Normalised Parent Coordinatesgeom_label_npc geom_text_npc
Label pairwise comparisonsgeom_label_pairwise geom_text_pairwise
Linked Textgeom_label_s geom_text_s
Inset plotsgeom_plot geom_plot_npc
Points linked by a segmentgeom_point_s
Reference lines: horizontal plus vertical, and quadrantsgeom_quadrant_lines geom_vhlines
Inset tablesgeom_table geom_table_npc
Reference arrows on the marginsgeom_x_margin_arrow geom_y_margin_arrow
Add Grobs on the marginsgeom_x_margin_grob geom_y_margin_grob
Reference points on the marginsgeom_x_margin_point geom_y_margin_point
Create a new ggplot plot from time series dataggplot ggplot.ts ggplot.xts
Ivy photosynthesis light responseivy.df
Combined positions dodge and nudgeposition_dodge2nudge position_dodge2_keep position_dodgenudge position_dodge_keep
Combined positions jitter and nudgeposition_jitternudge position_jitter_keep
Nudge labels away from a central pointposition_nudge_center position_nudge_centre
Nudge points a fixed distanceposition_nudge_keep
Nudge labels away from a lineposition_nudge_line
Nudge labels to new positionsposition_nudge_to
Combined positions stack and nudgeposition_fillnudge position_fill_keep position_stacknudge position_stack_keep position_stack_minmax
Gene expression dataquadrant_example.df
Position scales for continuous data (npcx & npcy)scale_continuous_npc scale_npcx_continuous scale_npcy_continuous
Apply a function to x or y valuesstat_apply_group stat_centroid stat_summary_xy
Filter observations by local 1D densitystat_dens1d_filter stat_dens1d_filter_g
Replace labels in data based on 1D densitystat_dens1d_labels
Filter observations by local 2D densitystat_dens2d_filter stat_dens2d_filter_g
Replace labels in data based on 2D densitystat_dens2d_labels
Select and slice a tibble nested in 'data'stat_fmt_tb
Draw functions as curvesstat_functions
Number of observations in a plot panelstat_group_counts stat_panel_counts
Number of observations in quadrantsstat_quadrant_counts
Convert an R object into a tibbletry_data_frame try_tibble
Table themesttheme_gtbw ttheme_gtdark ttheme_gtdefault ttheme_gtlight ttheme_gtminimal ttheme_gtplain ttheme_gtsimple ttheme_gtstripes
Set default table themettheme_set
Gene expression datavolcano_example.df
Weather dataweather_18_june_2019.df
Wrap character strings in a vectorwrap_labels