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

    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 …

  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 …

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

  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 …

  5. Package index • ggplot2

    To create your own geoms, stats, scales, and facets, you’ll need to learn a bit about the object oriented system that ggplot2 uses. Start by reading vignette("extending-ggplot2") then consult …

  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 …

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

  8. Set scale limits — lims • ggplot2

    This is a shortcut for supplying the limits argument to the individual scales. By default, any values outside the limits specified are replaced with NA. Be warned that this will remove data outside …

  9. Gradient colour scales — scale_colour_gradient • ggplot2

    scale_*_gradient creates a two colour gradient (low-high), scale_*_gradient2 creates a diverging colour gradient (low-mid-high), scale_*_gradientn creates a n-colour gradient. For binned …

  10. FAQ: Barplots • ggplot2

    How can I make a bar plot of group means? Either calculate the group means first and use geom_col() to draw the bars or let ggplot2 calculate the means with stat_summary() with fun = …