About 63 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. 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().

  4. 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 …

  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. 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 …

  7. 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 …

  8. FAQ: Reordering • ggplot2

    Bar plots How can I reorder the bars in a bar plot by their value? Change the order of the levels of the factor variable you’re creating the bar plot for in the aes thetic mapping. The forcats package offers a …

  9. Points — geom_point • ggplot2

    The point geom is used to create scatterplots. The scatterplot is most useful for displaying the relationship between two continuous variables. It can be used to compare one continuous and one …

  10. Facets — Facet • ggplot2

    All facet_*() functions returns a Facet object or an object of a Facet subclass. This object describes how to assign data to different panels, how to apply positional scales and how to lay out the panels, once …