USGS-R / gsplot

plotting foundation for timeseries reporting
Other
6 stars 14 forks source link

easy way to stop axis labels from being scientific #409

Open lindsayplatt opened 7 years ago

lindsayplatt commented 7 years ago

format works if you render the plot first:

gs <- gsplot() %>% 
  points(c(10000000, 8000000), c(0,1))
gs

gs <- gs %>% 
  axis(side=1, labels=format(axTicks(1), scientific=FALSE))
gs

something like this would be nice

gs <- gsplot() %>% 
  points(c(10000000, 8000000), c(0,1)) %>%
  axis(side=1, scientific=FALSE))
gs

or you could just set options(scipen=999) before rendering the object

gs <- gsplot() %>% 
    points(c(10000000, 8000000), c(0,1))
gs

options(scipen=999)
gs