Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion coord.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ Internally ggplot2 uses many more segments so that the result looks smooth.
### Transformations with `coord_trans()`

Like limits, we can also transform the data in two places: at the scale level or at the coordinate system level.
`coord_trans()` has arguments `x` and `y` which should be strings naming the transformer or transformer objects (see @sec-scale-position).
`coord_trans()` has arguments `x` and `y`, which should be strings naming the transformer or transformer objects (see @sec-scale-position).
Transforming at the scale level occurs before statistics are computed and does not change the shape of the geom.
Transforming at the coordinate system level occurs after the statistics have been computed, and does affect the shape of the geom.
Using both together allows us to model the data on a transformed scale and then backtransform it for interpretation: a common pattern in analysis.
Expand Down