Skip to content
Prev 78848 / 398502 Next

bug checking

## Code was long, so I simplified it by creating vectors from scratch  
so it would run as is.  Putative "bug" is still evidenced on the x axis

discount.factors.dates <- seq.dates(from="09/30/2005", to="09/30/2035")
rates<-seq(4.4, 5.2, by=0.0025);
plot(discount.factors.dates[1:length(rates)], rates,
      pch=18, las=1, bty="n",
      col="red", col.main="red",
      xlab="Date", ylab="Rate",
      ylim=c(min(rates)-(max(rates)-min(rates))/10,max(rates)+(max 
(rates)-min(rates))/10))

## This is the output:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot.pdf
Type: application/pdf
Size: 27928 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20051011/231037f1/plot.pdf
-------------- next part --------------

## Hopefully you all see the red x axis.

## I am running R Cocoa GUI 1.1.2 with R 2.1.1 framework on a dual  
proc 2.7 Ghz Power Mac.  A Quartz device is opened when 'plot' is  
called.  X11User and X11SDK are installed on t he computer, as well  
as xCode 2.1 (in case that's relevant).
On Oct 11, 2005, at 4:47 PM, Marc Schwartz wrote: