Retour au classement

Additional themes, scales, and geoms for ggplot2

plotthemeggplot2visualizationdata-visualisationplottingggplot2-themes
Croissance des étoiles
Étoiles
1.4k
Forks
224
Croissance hebdomadaire
Issues
14
5001k
sept. 2012avr. 2017déc. 2021juil. 2026
README

R-CMD-check Code Coverage
Status rstudio mirror
downloads CRAN
status lifecycle

Some extra geoms, scales, and themes for ggplot.

Install

To install the stable version from CRAN,

install.packages('ggthemes', dependencies = TRUE)

Or, to install the development version from github, use the devtools package,

library("devtools")
install_github(c("hadley/ggplot2", "jrnold/ggthemes"))

How to use

For a quick tutorial, check out Rafael Irizarry’s book.

Examples

library("ggplot2")
library("ggthemes")

mtcars2 <- within(mtcars, {
  vs <- factor(vs, labels = c("V-shaped", "Straight"))
  am <- factor(am, labels = c("Automatic", "Manual"))
  cyl  <- factor(cyl)
  gear <- factor(gear)
})

p1 <- ggplot(mtcars2) +
  geom_point(aes(x = wt, y = mpg, colour = gear)) +
  labs(
    title = "Fuel economy declines as weight increases",
    subtitle = "(1973-74)",
    caption = "Data from the 1974 Motor Trend US magazine.",
    x = "Weight (1000 lbs)",
    y = "Fuel economy (mpg)",
    colour = "Gears"
  )
p1 +
  scale_color_calc() +
  theme_calc()

p1 + theme_clean()

p1 + theme_economist() +
  scale_colour_economist()

p1 + theme_excel() +
  scale_colour_excel()

p1 + theme_excel_new() +
  scale_colour_excel_new()

p1 + theme_igray()

p1 + theme_par()

p1 + theme_fivethirtyeight()

p1 + theme_few() +
  scale_colour_few()

p1 + theme_solarized() +
  scale_colour_solarized()

p1 + theme_solarized(light=FALSE) +
  scale_colour_solarized()

p1 + theme_solid()

p1 + theme_tufte()

p1 + theme_wsj(base_size = 8) + scale_color_wsj()

p1 + scale_color_colorblind()

p1 + scale_color_tableau()

Dépôts similaires
leeoniya/uPlot

📈 A small, fast chart for time series, lines, areas, ohlc & bars

JavaScriptnpmMIT Licensetime-seriesohlc
10.3k461
ScottPlot/ScottPlot

Interactive plotting library for .NET

C#MIT Licenseplotplotting
scottplot.net
6.7k1k
epezent/implot

Immediate Mode Plotting

C++MIT Licenseimguiplotting-library
6.2k689
PlotJuggler/PlotJuggler

The Time Series Visualization Tool that you deserve.

C++Mozilla Public License 2.0rosqt5
plotjuggler.io
6.1k808
vega/vega-lite

A concise grammar of interactive graphics, built on Vega.

TypeScriptnpmBSD 3-Clause "New" or "Revised" Licensevisual-analysisvisualization-grammar
vega.github.io/vega-lite/
5.4k713
facontidavide/PlotJuggler

The Time Series Visualization Tool that you deserve.

C++Mozilla Public License 2.0rosqt5
plotjuggler.io
4.7k653
plotters-rs/plotters

A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely 🦀 📈🚀

Rustcrates.ioMIT Licenserustvisualization
plotters-rs.github.io/home/
4.6k317
beto-rodriguez/LiveCharts2

Simple, flexible, interactive & powerful charts, maps and gauges for .Net, LiveCharts2 can now practically run everywhere Maui, Uno Platform, Blazor-wasm, WPF, WinForms, Xamarin, Avalonia, WinUI, UWP.

C#MIT Licenseunochart
livecharts.dev
4.6k606
guptarohit/asciigraph

Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.

GoGo ModulesBSD 3-Clause "New" or "Revised" Licenseasciigraphgraph
pkg.go.dev/github.com/guptarohit/asciigraph
3.1k121
antvis/G2Plot

:dango: An interactive and responsive charting library based on G2.

TypeScriptnpmMIT Licenseantvvisualization
g2plot.antv.antgroup.com
2.7k592
ivnsch/SwiftCharts

Easy to use and highly customizable charts library for iOS

SwiftApache License 2.0chartswift
2.6k405
AAChartModel/AAChartKit-Swift

📈📊📱💻🖥️An elegant modern declarative data visualization chart framework for iOS, iPadOS and macOS. Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types. 极其精美而又强大的现代化声明式数据可视化图表框架,支持柱状图、条形图、折线图、曲线图、折线填充图、曲线填充图、气泡图、扇形图、环形图、散点图、雷达图、混合图等各种类型的多达几十种的信息图图表,完全满足工作所需.

SwiftMIT Licensechartcolumn-chart
cocoapods.org/pods/AAInfographics
2.5k263