small tweak to rm legend duplicates function (need object not gs)
small tweak to rm legend duplicates function (need object not gs)

mhines-usgs/repgen,lindsaycarr/repgen,USGS-R/repgen,zmoore-usgs/repgen,thongsav-usgs/repgen,zmoore-usgs/repgen,lindsaycarr/repgen,dpattermann-usgs/repgen,mhines-usgs/repgen,lindsaycarr/repgen,dpattermann-usgs/repgen,USGS-R/repgen,thongsav-usgs/repgen,dpattermann-usgs/repgen,USGS-R/repgen,zmoore-usgs/repgen,mhines-usgs/repgen,thongsav-usgs/repgen