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

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

  6. 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 these functions …

  7. FAQ: Faceting - ggplot2

    Either let ggplot2 determine custom axis limits for the facets based on the range of the data you’re plotting using the scales argument in facet_wrap() or facet_grid() or, if that is not sufficient, use …

  8. Lay out panels in a grid — facet_grid • ggplot2

    facet_grid() forms a matrix of panels defined by row and column faceting variables. It is most useful when you have two discrete variables, and all combinations of the variables exist in the data. If you …

  9. Save a ggplot (or other grid object) with sensible defaults

    ggsave() is a convenient function for saving a plot. It defaults to saving the last plot that you displayed, using the size of the current graphics device. It also guesses the type of graphics device from the …

  10. Draw a function as a continuous curve — geom_function • ggplot2

    Aesthetics geom_function() understands the following aesthetics. Required aesthetics are displayed in bold and defaults are displayed for optional aesthetics: ... Learn more about setting these aesthetics …