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

    ggplot2 is 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 …

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

  5. Construct aesthetic mappings — aes • ggplot2

    See also vars() for another quoting function designed for faceting specifications. Run vignette("ggplot2-specs") to see an overview of other aesthetics that can be modified. Delayed evaluation for working …

  6. Modify axis, legend, and plot labels — labs • ggplot2

    Good labels are critical for making your plots accessible to a wider audience. Always ensure the axis and legend labels display the full variable name. Use the plot title and subtitle to explain the main …

  7. Add components to a plot — add_gg • ggplot2

    + is the key to constructing sophisticated ggplot2 graphics. It allows you to start simple, then get more and more complex, checking your work at each step.

  8. Complete themes — ggtheme • ggplot2

    The classic dark-on-light ggplot2 theme. May work better for presentations displayed with a projector. theme_linedraw() A theme with only black lines of various widths on white backgrounds, reminiscent …

  9. Bar charts — geom_bar • ggplot2

    Thus, ggplot2 will by default try to guess which orientation the layer should have. Under rare circumstances, the orientation is ambiguous and guessing may fail. In that case the orientation can …

  10. FAQ: Axes • ggplot2

    By default, ggplot2 expands the scale by 5% on each side for continuous variables and by 0.6 units on each side for discrete variables. To keep the default expansion on top while removing it at the …