R 3.0.2 OS X Colleagues In a graphic, the x-axis values 2, 4, 6, 8, 10, 12 I would like to present these as: ? 2, ? 4, ? 6, ?8, ? 10, ? 12 I have tried to accomplish this with expression and bquote without success. Can someone provide the appropriate code? Thanks. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com
Show us your code. -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." H. Gilbert Welch On Tue, Apr 15, 2014 at 8:58 AM, Dennis Fisher <fisher at plessthan.com> wrote:> R 3.0.2 > OS X > > Colleagues > > In a graphic, the x-axis values > 2, 4, 6, 8, 10, 12 > > I would like to present these as: > ? 2, ? 4, ? 6, ?8, ? 10, ? 12 > > I have tried to accomplish this with > expression > and > bquote > without success. Can someone provide the appropriate code? > > Thanks. > > Dennis > > Dennis Fisher MD > P < (The "P Less Than" Company) > Phone: 1-866-PLessThan (1-866-753-7784) > Fax: 1-866-PLessThan (1-866-753-7784) > www.PLessThan.com > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
The following works for me:
x <- rnorm(10)
plot(x, xaxt="n")
axis(side=1, at=axTicks(1),lab=c("? a","? b","?
c","? d","= e"))
(In case the characters get mangled in transition:
I have used le, ge, approx. equal, ne, and equal in this example)
Cheer,s
B.
On 2014-04-15, at 11:58 AM, Dennis Fisher wrote:
> R 3.0.2
> OS X
>
> Colleagues
>
> In a graphic, the x-axis values
> 2, 4, 6, 8, 10, 12
>
> I would like to present these as:
> ? 2, ? 4, ? 6, ?8, ? 10, ? 12
>
> I have tried to accomplish this with
> expression
> and
> bquote
> without success. Can someone provide the appropriate code?
>
> Thanks.
>
> Dennis
>
> Dennis Fisher MD
> P < (The "P Less Than" Company)
> Phone: 1-866-PLessThan (1-866-753-7784)
> Fax: 1-866-PLessThan (1-866-753-7784)
> www.PLessThan.com
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.