Re: [R] Broken x-axis?

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Thu 02 Feb 2006 - 04:12:50 EST

Brett Ginsburg <ginsburg@uthscsa.edu> writes:

> Hello,
> Sorry for the double post, but I just subscribed....
>
> Does anyone have experience creating a graph with a segmented x-axis?
>
> Specifically, as a pharmacologist, I frequently need to create a graph with
> 2 segments, one for vehicle, and one for active doses.
>
> Here is an example...
>
> |
> |
> |
> |
> |----| |----------------|
> Vehicle 1 3 10 30 etc..
> Doses
>
> Any help is appreciated!

axis.break() in the plotrix package springs to mind. Or, simply use plot(....axes=F) followed by axis() multiple times with labels= and at= to get override the default numeric labels (some assembly may be required if you need to "cheat" the coordinate system).

-- 
   O__  ---- Peter Dalgaard             ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Feb 02 04:44:00 2006

This archive was generated by hypermail 2.1.8 : Thu 02 Feb 2006 - 08:29:43 EST