Skip to content
Back to skills

R Viz

ASecurity

R visualization packages. Use for static plots (ggplot2, lattice), interactive visualizations (plotly, leaflet, DT), animations (gganimate), and HTML widgets.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 4, 2026
datagogit

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned June 4, 2026

npx -y skills add LeoLin990405/r-analytics-skill --skill r-viz --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of R Viz?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for R Viz
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leolin990405-r-viz/badge)](https://www.skillsdirectory.com/skills/leolin990405-r-viz)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: r-viz
description: R visualization packages. Use for static plots (ggplot2, lattice), interactive visualizations (plotly, leaflet, DT), animations (gganimate), and HTML widgets.
---

# R Visualization Skill

## Sub-skills

| Sub-skill | Description |
|-----------|-------------|
| [r-viz-static](r-viz-static/SKILL.md) | ggplot2, lattice, base graphics |
| [r-viz-interactive](r-viz-interactive/SKILL.md) | plotly, leaflet, DT, htmlwidgets |
| [r-viz-animation](r-viz-animation/SKILL.md) | gganimate, animation |

Static and interactive visualization in R.

## Static Graphics (ggplot2 ecosystem)

| Package | Description |
|---------|-------------|
| **ggplot2** ★ | Grammar of Graphics implementation |
| **patchwork** ★ | Combine ggplot2 plots |
| **ggrepel** | Repel overlapping text labels |
| **ggalt** | Extra geoms and stats |
| **ggstatsplot** | Plots with statistical details |
| **ggfortify** | Unified interface for stat packages |
| **ggtree** | Phylogenetic tree visualization |
| **ggtech** | Tech company themes |
| **hrbrthemes** | Typographic-centric themes |
| **corrplot** | Correlation matrix display |

## Other Static Graphics

| Package | Description |
|---------|-------------|
| **lattice** | High-level Trellis graphics |
| **rgl** | 3D visualization device |
| **Cairo** | High-quality graphics output |
| **plot3D** | Multi-dimensional plotting |
| **waffle** | Waffle (square pie) charts |
| **dendextend** | Dendrogram visualization |

## Animation

| Package | Description |
|---------|-------------|
| **gganimate** ★ | Animate ggplot2 plots |
| **animation** | Animated graphics with ImageMagick |

## Fonts & Styling

| Package | Description |
|---------|-------------|
| **extrafont** | Use system fonts |
| **showtext** | Enable system fonts in graphics |
| **xkcd** | XKCD style graphics |

## HTML Widgets (Interactive)

| Package | Description |
|---------|-------------|
| **plotly** ★ | Interactive ggplot2/Shiny plots |
| **DT** ★ | Interactive data tables |
| **leaflet** ★ | Interactive maps |
| **DiagrammeR** ★ | JS graph diagrams/flowcharts |
| **dygraphs** | Time-series charting |
| **highcharter** | Highcharts wrapper |
| **echarts4r** | ECharts wrapper |
| **visNetwork** | Network visualization (vis.js) |
| **networkD3** | D3 network graphs |
| **scatterD3** | Interactive scatterplots |
| **rbokeh** | Bokeh interface |
| **threejs** | 3D scatter plots/globes |
| **timevis** | Timeline visualizations |
| **wordcloud2** | Word clouds |
| **heatmaply** | Interactive heatmaps |
| **formattable** | Formattable data structures |
| **ggvis** | Interactive grammar of graphics |
| **rCharts** | Interactive JS charts |
| **r2d3** | D3 visualizations interface |
| **MetricsGraphics** | D3 charts |

## Quick Examples

```r
# ggplot2 basics
library(ggplot2)
ggplot(df, aes(x, y, color = group)) +
  geom_point() +
  geom_smooth(method = "lm") +
  facet_wrap(~category) +
  theme_minimal() +
  labs(title = "Title", x = "X", y = "Y")

# Combine plots
library(patchwork)
(p1 | p2) / p3

# Interactive plotly
library(plotly)
ggplotly(p)

# Interactive table
library(DT)
datatable(df, filter = "top")

# Interactive map
library(leaflet)
leaflet() %>%
  addTiles() %>%
  addMarkers(lng = 116.4, lat = 39.9)

# Animation
library(gganimate)
p + transition_time(year) +
  labs(title = "Year: {frame_time}")

# Save
ggsave("plot.png", width = 10, height = 6, dpi = 300)
```

## Resources

- ggplot2: https://ggplot2.tidyverse.org/
- ggplot2 extensions: https://exts.ggplot2.tidyverse.org/
- plotly: https://plotly.com/r/
- leaflet: https://rstudio.github.io/leaflet/
- htmlwidgets: https://www.htmlwidgets.org/

Files in this skill

  • SKILL.md3.6 KB
  • r-viz-animation/SKILL.md3.5 KB
  • r-viz-animation/gganimate/SKILL.md2.6 KB
  • r-viz-interactive/DT/SKILL.md2.7 KB
  • r-viz-interactive/DiagrammeR/SKILL.md3.5 KB
  • r-viz-interactive/SKILL.md3.7 KB
  • r-viz-interactive/dygraphs/SKILL.md2.5 KB
  • r-viz-interactive/echarts4r/SKILL.md1.4 KB
  • r-viz-interactive/formattable/SKILL.md3.6 KB
  • r-viz-interactive/ggvis/SKILL.md2.6 KB
  • r-viz-interactive/heatmaply/SKILL.md3.3 KB
  • r-viz-interactive/highcharter/SKILL.md1.6 KB
  • r-viz-interactive/leaflet/SKILL.md2.7 KB
  • r-viz-interactive/networkD3/SKILL.md1.4 KB
  • r-viz-interactive/plotly/SKILL.md2.5 KB
  • r-viz-interactive/rbokeh/SKILL.md3.2 KB
  • r-viz-interactive/threejs/SKILL.md3.3 KB
  • r-viz-interactive/visNetwork/SKILL.md1.6 KB
  • r-viz-interactive/wordcloud2/SKILL.md3.8 KB
  • r-viz-static/SKILL.md3.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.