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

    R for Data Science is designed to give you a comprehensive introduction to the tidyverse, and these two chapters will get you up to speed with the essentials of ggplot2 as quickly as possible.

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

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

  6. Differentiation related aesthetics: linetype, size, shape - ggplot2

    Run vignette("ggplot2-specs") to see an overview of other aesthetics that can be modified. Other aesthetics documentation: aes(), aes_colour_fill_alpha, aes_group_order, aes_position

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

    alt, alt_insight Text used for the generation of alt-text for the plot. See get_alt_text for examples. alt can also be a function that takes the plot as input and returns text as output. alt also accepts rlang …

  8. Histograms and frequency polygons — geom_freqpoly • 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 …

  9. Set scale limits — lims • ggplot2

    # This is useful if you want to match scales across different plots small <- subset (mtcars, cyl == 4) big <- subset (mtcars, cyl > 4) ggplot (small, aes (mpg, wt, colour = factor (cyl))) + geom_point () + …

  10. A box and whiskers plot (in the style of Tukey) — geom_boxplot • …

    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 …