Understand annotate() to improve your plots | A ggplot2 Tutorial

preview_player
Показать описание

Annotations are a great way to improve your plots. In ggplot, you can create these annotations with the annotate() layer. But it can be very confusing why you would even need this extra layer instead of using a `geom_*()` layer. In this video, we show you what the difference is and how to create good annotations.

#rprogramming #datavisualization #ggplot2

Рекомендации по теме
Комментарии
Автор

This is useful.

I feel that the "next level" for ggplot would be to have a *bidirectional* interaction between the code and the plot. For example, we should be able to move the text annotation around in the plot (using the mouse), and that should update the coordinates in the code.

kevalan
Автор

This presentation brings together the best books on tidy & ggplot (e.g., ggplot, r graphics textbook) in a clear manner. This presentation demystified for me the difference between geom_ and annotate_.

AlbertoFCabreraCasillas
Автор

What an excellent presentation. Thank you a lot.

muhammedhadedy
Автор

How would I write sub/ superscripts in the annotate function? For example: I want to include an annotation with an equation an R^2 value. I've tried the up arrow but it just shows in the text?

SebastianExtreme
Автор

Instead of using annotation you could probably set the data argument in each specific Geom to what you need ..

djangoworldwide
Автор

Great stuff! However, the URL in the description is not working (or, it is returning a 'Page Not Found').

erikgahnerlarsen