Skip to content
Back to formatted view

Raw Message

Message-ID: <77EB52C6DD32BA4D87471DCD70C8D700491836@NA-PA-VBE03.na.tibco.com>
Date: 2008-12-02T21:53:33Z
From: William Dunlap
Subject: Suppressing tick labels?

> [R] Suppressing tick labels?
> Graham Smith myotisone at gmail.com
> Tue Dec 2 21:26:03 CET 2008
> 
> I am trying to suppress the tick labels on the x-axis of the
following:
> 
> barchart(richness[Wood=="V"]~Sample[Wood=="V"])

Use the scales= argument.  E.g.

  d<-data.frame(richness=log(1:12), Wood=rep(c("S","V"),each=6),
Sample=rep(1:6,2))
  barchart(richness[Wood=="V"]~Sample[Wood=="V"], data=d,
scales=list(x=list(at=numeric(0), lab=character(0))))

You can get the tick positions and labels of your choice with scales:

  barchart(richness[Wood=="V"]~Sample[Wood=="V"], data=d,
scales=list(x=list(at=c(2,5), lab=c("Two","Five"))))

Bill Dunlap
TIBCO Software Inc - Spotfire Division
wdunlap tibco.com