Package: hairline 0.1.0

Nikolas Schrader

hairline: Clean, Predictable Figures for Medical and Data Science

A design system for 'ggplot2' figures: one frame for titles, legends, panels and captions, a fixed spacing and type scale, colour-vision checked palettes, brand files in the 'brand.yml' format, and print-ready export. Produces output matching the 'hairline' Python package.

Authors:Nikolas Schrader [aut, cre, cph]

hairline_0.1.0.tar.gz
hairline_0.1.0.zip(r-4.7-any)hairline_0.1.0.zip(r-4.6-any)
hairline_0.1.0.tar.gz(r-4.7-any)hairline_0.1.0.tar.gz(r-4.6-any)
hairline_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
hairline/json (API)

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

Bug tracker:https://github.com/schradern/hairline/issues

On CRAN:

Conda:

1.70 score 55 exports 24 dependencies

Last updated from:dfa82957aa. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK194
source / vignettesOK268
linux-releaseOK308
windows-develOK208
windows-releaseOK216
wasm-releaseOK114

Exports:hl_arcshl_barshl_brand_reporthl_check_palettehl_chordhl_colorhl_colorshl_comparehl_correlationhl_describehl_distributionhl_donuthl_dotplothl_effectshl_find_brandhl_foresthl_format_intervalhl_format_numberhl_format_percenthl_funnelhl_highlighthl_install_fonthl_kaplan_meierhl_layout_reporthl_legendhl_load_brandhl_over_timehl_palettehl_paletteshl_panel_headerhl_partitionhl_prismahl_raincloudhl_ramphl_referencehl_ridgelinehl_risk_of_biashl_sankeyhl_savehl_scatterhl_settingshl_spreadhl_studyhl_survivalhl_swatcheshl_timeserieshl_usehl_vennscale_colour_hairlinescale_colour_hairline_cscale_fill_hairlinescale_fill_hairline_cscale_x_hairlinescale_y_hairlinetheme_hairline

Dependencies:base64encclicpp11farverggplot2gluegtableisobandjsonlitelabelinglifecycleR6raggRColorBrewerrlangS7scalesstringisystemfontstextshapingvctrsviridisLitewithryaml

Readme and manuals

Help Manual

Help pageTopics
Colours in hairlinehairline_colors hairline_colours
Arc diagramhl_arcs
Bar charthl_bars
Brand reporthl_brand_report
Check a palette for readabilityhl_check_palette
Chord diagramhl_chord
Entity colourshl_color hl_colors
Compare one variable between groupshl_compare
Correlation heatmaphl_correlation
Table 1: the cohort by grouphl_describe
Distribution of one numeric variable by grouphl_distribution
Donut and nested donuthl_donut
Dot plot with intervalshl_dotplot
Effects with 95 % intervalshl_effects
Find a brand filehl_find_brand
Forest plothl_forest
Format numbers, percentages and intervalshl_format_interval hl_format_number hl_format_percent
Funnel plothl_funnel
Highlight series or panelshl_highlight
Install the bundled font for PDF outputhl_install_font
Kaplan–Meier curveshl_kaplan_meier
Frame positions of a hairline plothl_layout_report
Explicit legend itemshl_legend
Read a brand filehl_load_brand
One measure over time by grouphl_over_time
Palette colours in slot orderhl_palette
Every colour set, with its usehl_palettes
Panel header with key numbershl_panel_header
Partition barshl_partition
PRISMA 2020 flow diagramhl_prisma
Raincloud plothl_raincloud
Sequential or diverging ramphl_ramp
Reference line with a labelhl_reference
Ridgeline plothl_ridgeline
Risk-of-bias summaryhl_risk_of_bias
Sankey diagramhl_sankey
Save print-ready fileshl_save
Scatter plot with fithl_scatter
Active hairline settingshl_settings
Spread rows: distributions per group on one axishl_spread
Describe a dataset once for the study endpointshl_study
Survival by grouphl_survival
Colour sets as swatcheshl_swatches
Small-multiple time series with two levels of detailhl_timeseries
Set hairline's style for this sessionhl_use
Venn diagramhl_venn
Colour and fill scales from hairline palettes and rampsscale_colour_hairline scale_colour_hairline_c scale_fill_hairline scale_fill_hairline_c
Position scales with nice breaksscale_x_hairline scale_y_hairline
hairline theme and frametheme_hairline