NOAA-OCM / SWMPrExtension

Functions for Analyzing and Plotting SWMP Estuary Monitoring Data from the NERR System archive at
http://cdmo.baruch.sc.edu/
Other
12 stars 5 forks source link

Modify plot legends to account for ggplot2 update #34

Closed padilla410 closed 5 years ago

padilla410 commented 5 years ago

Most legends will need to have the legend spacing changed from theme(legend.spacing.x = unit(-6, 'pt')) to theme(legend.spacing.x = unit(6, 'pt')).

historical_range will need theme(legend.spacing.x = unit(2, 'pt'))

padilla410 commented 5 years ago

This issue will be closed in a future pull request

swmpkim commented 5 years ago

@padilla410 , @DaveEslinger , this hasn't made it into the CRAN version of SWMPrExtension yet, right? From the commit messages, it looks like it's in the master branch here on github; but I'm still having to add these commands interactively to make the legends work with the new ggplot2.

Here's the output of sessionInfo(), just for the record:

other attached packages:
[1] SWMPrExtension_0.3.16.9000 lubridate_1.7.4            SWMPr_2.3.0               
[4] zoo_1.8-4                  ggplot2_3.1.0   
padilla410 commented 5 years ago

@swmpkim, that's correct. The most recent version is on my personal github (https://github.com/padilla410/SWMPrExtension), version 1.1.1. I need to submit a pull request to Dave.

padilla410 commented 5 years ago

Resolved in v 1.1.1