ggplot2-book icon indicating copy to clipboard operation
ggplot2-book copied to clipboard

Scales Transformations (paragraph10.1.7) not correct anymore

Open mhurk opened this issue 1 year ago • 0 comments

The code showing the reciprocal transformation (§ 10.1.7) is not correct anymore. As of R4.3.3 a bug preventing the axis labels to be displayed is solved.

# convert from fuel economy to fuel consumption   
ggplot(mpg, aes(displ, hwy)) + 
  geom_point() +  
  scale_y_continuous(trans = "reciprocal")

This is the output of R4.3.3:

par10_1_7

mhurk avatar Mar 25 '24 16:03 mhurk