USGS-R / smwrGraphs

Moved to: https://code.usgs.gov/water/analysis-tools/smwrGraphs
https://code.usgs.gov/water/analysis-tools/smwrGraphs
Other
18 stars 16 forks source link

yaxis.rev = TRUE for Boxplot #45

Open jmusgs opened 5 years ago

jmusgs commented 5 years ago

Is there any way to flip the y axis on the boxplot using the command yaxis.rev = TRUE, as in some of the other graph types? We have a report with lots of boxplots comparing groundwater levels, and the colleague reviewers have asked us to flip the axis to show depth to groundwater with land surface at the top. The yaxis.rev = TRUE does not seem to work here.

Thanks

ldecicco-USGS commented 5 years ago

I don't have time in the near future to dig into the code to see how complex that would be. One option for boxplots would be to take a look at:

https://owi.usgs.gov/blog/boxplots/

If you can consider using a ggplot2 approach, then you can add something like scale_y_reverse( lim=c(10,0)) when creating the plot.

jmusgs commented 5 years ago

Thanks. I will let you know what we end up doing. We had some other thoughts of feeding in the data as negative values for now..

John

On Mon, Apr 8, 2019 at 12:25 PM Laura DeCicco notifications@github.com wrote:

I don't have time in the near future to dig into the code to see how complex that would be. One option for boxplots would be to take a look at:

https://owi.usgs.gov/blog/boxplots/

If you can consider using a ggplot2 approach, then you can add something like scale_y_reverse( lim=c(10,0)) when creating the plot.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/USGS-R/smwrGraphs/issues/45#issuecomment-480902885, or mute the thread https://github.com/notifications/unsubscribe-auth/AP5mvJTMrhmfQ5HwxEhRtEpv_KVsAF3zks5ve21-gaJpZM4ciCXy .

-- John R. Mullaney Hydrologist Groundwater Specialist U.S. Geological Survey New England Water Science Center Connecticut Office 101 Pitkin Street East Hartford, CT 06108 860-291-6760 860-372-2672 cell https://www.usgs.gov/staff-profiles/john-r-mullaney