USGS-R / gsplot

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

should lim look only at plotted data or axis() specs too? #403

Closed lindsayplatt closed 8 years ago

lindsayplatt commented 8 years ago

If my data is different than what's present in axis(), what should the plot look like? Since I am explicitly calling at in axis, I would expect the limits to be based on at but it's ignoring them.

g1 <- gsplot() %>% 
  points(1:9, seq(1,3, by=0.25)) %>% 
  axis(side=2, at=1:10) 
g1

image

lindsayplatt commented 8 years ago

function exists to change lims (and others) @lindsaycarr add view() to vignette

g1 <- gsplot() %>% 
    points(1:5, 1:5) %>% 
    view(xlim=c(1,10)) %>% 
    axis(side=2, at=1:10) 
g1