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

    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 …

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

  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 plot aesthetics intended to be common throughout all subsequent layers …

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

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

  7. Aesthetic specifications • ggplot2

    Customising how aesthetic specifications are represented on your plot.

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

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

  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 …