You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(tidyverse)
library(scales)
#> Warning: package 'scales' was built under R version 4.3.1#> #> Attaching package: 'scales'#> The following object is masked from 'package:purrr':#> #> discard#> The following object is masked from 'package:readr':#> #> col_factorp<-pressure|>
ggplot() +
geom_point(
aes(
x=temperature, ,
y=pressure,
col=pressure,
))
# p + scale_colour_gradientn(colors = viridis::viridis(10), trans = "identity")# p + scale_colour_gradientn(colors = viridis::viridis(10), trans = "log10")# p + scale_colour_gradientn(colors = viridis::viridis(10), trans = "reverse")# p + scale_colour_gradientn(colors = viridis::viridis(10), trans = c("log10", "reverse"))## p + scale_colour_stepsn(colors = viridis::viridis(10), trans = "identity")# p + scale_colour_stepsn(colors = viridis::viridis(10), trans = "log10")p+ scale_colour_stepsn(colors=viridis::viridis(10), trans="reverse")
The text was updated successfully, but these errors were encountered:
davidhodge931
changed the title
scale_colour_stepsn does not work with trans of "reverse" or c("log10", "reverse")scale_colour_stepsn does not work with trans of "reverse" or c("log10", "reverse")
Jul 19, 2023
I think this is a fallout from the upstream issue that binned scales don't deal with trans = "reverse" very well, which should probably be resolved in ggplot2.
Created on 2023-07-19 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: