
ggplot2 - Create Elegant Data Visualisations Using the Grammar of …
This book helps you understand the theory that underpins ggplot2, and will help you create new types of graphics specifically tailored to your needs. For articles about announcements and deep-dives you …
Introduction to ggplot2
More complete information about how to use ggplot2 can be found in the book, but here you’ll find a brief overview of the plot components and some terse examples to build a plot like this:
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 …
Points — geom_point • ggplot2
For example, to use position_jitter(), give the position as "jitter". For more information and other ways to specify the position, see the layer position documentation.
Dot plot — geom_dotplot • ggplot2
For example, to use position_jitter(), give the position as "jitter". For more information and other ways to specify the position, see the layer position documentation.
Smoothed density estimates — geom_density • 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 …
Lay out panels in a grid — facet_grid • ggplot2
You can use different labeling functions for different kind of labels, for example use label_parsed() for formatting facet labels. label_value() is used by default, check it for more details and pointers to other …
Smoothed conditional means — geom_smooth • 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 …
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 …
Wrap a 1d ribbon of panels into 2d — facet_wrap • ggplot2
You can use different labeling functions for different kind of labels, for example use label_parsed() for formatting facet labels. label_value() is used by default, check it for more details and pointers to other …