About 65 results
Open links in new tab
  1. ggplot2 - Create Elegant Data Visualisations Using the Grammar of …

    A system for declaratively creating graphics, based on "The Grammar of Graphics". You provide the data, tell ggplot2 how to map variables to aesthetics, what graphical primitives to use, and it takes …

  2. Introduction to ggplot2

    ggplot2 is an R package for producing visualizations of data. Unlike many graphics packages, ggplot2 uses a conceptual framework based on the grammar of graphics. This allows you to ‘speak’ a graph …

  3. Create a new ggplot — ggplot • ggplot2

    ggplot() initializes a ggplot object. It can be used to declare the input data frame for a graphic and to specify the set of aesthetic mappings for the plot, intended to be common throughout all subsequent …

  4. Package index • ggplot2

    All ggplot2 plots begin with a call to ggplot(), supplying default data and aesthetic mappings, specified by aes(). You then add layers, scales, coords and facets with +. To save a plot to disk, use ggsave().

  5. ggplot2: Create Elegant Data Visualisations Using the Grammar of ...

    A system for 'declaratively' creating graphics, based on "The Grammar of Graphics". You provide the data, tell 'ggplot2' how to map variables to aesthetics, what graphical primitives to use, and it takes …

  6. Complete themes — ggtheme • ggplot2

    These are complete themes which control all non-data display. Use theme() if you just need to tweak the display of an existing theme.

  7. Using ggplot2 in packages

    This vignette is intended for package developers who use ggplot2 within their package code. As of this writing, this includes over 2,000 packages on CRAN and many more elsewhere! Programming with …

  8. Bar charts — geom_bar • ggplot2

    There are two types of bar charts: geom_bar() and geom_col(). geom_bar() makes the height of the bar proportional to the number of cases in each group (or if the weight aesthetic is supplied, the sum of …

  9. Aesthetic specifications - ggplot2

    In addition, ggplot2 provides a conversion factor as the variable .pt, so if you want to draw 12pt text, you can also set size = 12 / .pt. Justification Horizontal and vertical justification have the same …

  10. FAQ: Barplots • ggplot2

    By default ggplot2 expands the axes so the geoms aren’t flush against the edges of the plot. To remove the spacing between the bars and the x-axis, but keep the spacing between the bars and the top of …