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

No ticks on character axis #25

Closed ldecicco-USGS closed 9 years ago

ldecicco-USGS commented 9 years ago

I think ticks would still be appropriate in this situation:

x <- c("A", "B", "C")
y <- 1:3
setPDF()
xyPlot(x,y,Plot=list(what="overlaid"))
graphics.off()

And there aren't any now. test

ldecicco-USGS commented 9 years ago

The root cause of this question was because of a column "Period" returned from rloadest that has "WY 2006", "WY 2007" etc.

dlorenz-usgs commented 9 years ago

The USGS standards guide indicates that ticks are not used for axis with discrete scales.

It also states "Continuous data plotted on a discrete scale [is] not meaningful,do not use." That means discrete values should not show connecting lines as they stand alone

The example suggests that there is a distinct relation between A and B and between B and C. There are times when that would be true, for example sequential years or months, which is the example shown on page 18 of the standards guide (any kind of ordered factor would also work). But the standards still suggest no lines.

Note that addAxisLabels will add the ticks in this case--just set ticks to TRUE and labels to FALSE.

On Thu, Oct 22, 2015 at 1:33 PM, Laura DeCicco notifications@github.com wrote:

The root cause of this question was because of a column "Period" returned from rloadest that has "WY 2006", "WY 2007" etc.

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

ldecicco-USGS commented 9 years ago

Makes sense to me.

ldecicco-USGS commented 9 years ago

I forwarded this on to the user who brought up the issue. They only noticed because a reviewer wanted them to include the ticks. This is good information for responding to that reviewer.