Skip to contents

Making accessible data representation with maidr is easy and straightforward. If you already have data visualization code using ggplot2 or Base R, you can make your plots accessible with maidr in just a few lines of code.

Simply load the maidr package and call maidr_on(). When plots are printed in a document, maidr will automatically generate accessible versions. You can then interact with the accessible versions using keyboard shortcuts (refer to the table below).

Key Action
Left / Right Navigate between data points
B Toggle braille mode
T Toggle text mode
S Toggle sonification (hear the data)
R Toggle review mode

When to Use Each Plot Type

Plot Type Best For Example Use Case
Bar Chart Comparing categories Sales by product
Pie Chart Parts of a whole Market share by brand
Histogram Showing distributions Test score frequencies
Scatter Plot Relationships between variables Height vs weight
Line Plot Trends over time/order Stock prices
Step Plot Piecewise-constant state over time A sleep-stage hypnogram
Box Plot Distribution comparison Salary by department
Violin Plot Distribution shape comparison Gene expression by group
Candlestick (OHLC) Financial OHLC time-series Stock price movements
Heatmap Matrix relationships Correlation matrices
Density Smooth distributions Probability density
Faceted Comparing subgroups Regional sales trends
Multi-Panel Multiple related views Dashboard layouts
Multi-Layered Combining visualizations Histogram + density overlay

Examples by plot family

Each family page renders every example interactively, so you can explore the charts with the keyboard shortcuts above. The stable and experimental labels follow “Supported plot types” in the README.

Every example is also runnable locally: run_example() lists the scripts shipped with the package.