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

Cheat sheet for plot parameters #13

Closed tjmills closed 9 years ago

tjmills commented 9 years ago

A cheat sheet for parameters to pass to plots is sorely needed, especially for the color and symbol types.

Plot=list(color="",symbol="",...)

Even for a relatively experienced R graphics user it is not apparent from the documentation what symbols, colors, or other parameters can be passed to plot to change the appearance.

Something similar to the cheat sheets available for ggplot2 would be very helpful.

For example: http://www.cookbook-r.com/Graphs/Colors_(ggplot2)/

dlorenz-usgs commented 9 years ago

The documentation for setPlot lists all of the options for what, symbol, width, and type. A cross reference to setPlot is the See Also section would be a helpful addition to the documentation for any plotting function that uses the Plot argument.

Cheat sheets would be great but would require additional support.

On Thu, Jun 4, 2015 at 8:12 AM, T. Joe Mills notifications@github.com wrote:

A cheat sheet for parameters to pass to plots is sorely needed.

Plot(color="",symbol="",...)

Even for a relatively experienced R graphics user it is not apparent from the documentation what symbols, colors, or other parameters can be passed to plot to change the appearance.

Something similar to the cheat sheets available for ggplot2 would be very helpful.

For example: http://www.cookbook-r.com/Graphs/Colors_(ggplot2)/

— Reply to this email directly or view it on GitHub https://github.com/USGS-R/smwrGraphs/issues/13.

tjmills commented 9 years ago

A cross reference as you suggested would probably be sufficient.

Also, a list of color values would be helpful.

dlorenz-usgs commented 9 years ago

Specific colors can be obtained from colors().

I can add a section to the Graph Additions showing colors from the color ramp functions in smwrGraphs. At this point, that kind of addition must be requested by reviewers, otherwise, it is hard to explain any changes to the package.

On Thu, Jun 4, 2015 at 11:11 AM, T. Joe Mills notifications@github.com wrote:

A cross reference as you suggested would probably be sufficient.

Also, a list of color values would be helpful.

— Reply to this email directly or view it on GitHub https://github.com/USGS-R/smwrGraphs/issues/13#issuecomment-108952630.

dlorenz-usgs commented 9 years ago

Added demo script to display the color ramps.