-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use plot range instead of data range to determine bandwith or radius
- Loading branch information
Showing
1 changed file
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3d75d67
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_limits
returns the scale limits(e.g.xlim
) or the data range if unset:https://github.com/tidyverse/ggplot2/blob/9af5d810164c05b7f7abaea357a664433470b48d/R/scale-.R#L540
scale_views$x.range
returns the coord limits i.e. after expansion:https://github.com/tidyverse/ggplot2/blob/9af5d810164c05b7f7abaea357a664433470b48d/R/coord-cartesian-.R#L101-L106
https://github.com/tidyverse/ggplot2/blob/9af5d810164c05b7f7abaea357a664433470b48d/R/coord-cartesian-.R#L101-L106
https://github.com/tidyverse/ggplot2/blob/9af5d810164c05b7f7abaea357a664433470b48d/R/scale-expansion.R#L133