From lor at zhwin.ch  Fri Jun 30 15:26:18 2006
From: lor at zhwin.ch (lor at zhwin.ch)
Date: Fri, 30 Jun 2006 15:26:18 +0200 (CEST)
Subject: [Rd] plot with NAs in x and type="s" (PR#9046)
Message-ID: <20060630132618.9A0B8538C1@slim.kubism.ku.dk>

Full_Name: Ren? Locher
Version: Version 2.3.1 (2006-06-01)
OS: i386, mingw32
Submission from: (NULL) (160.85.104.70)


The problem seems to occur only, when you want to plot a vector containing a NA
value at position 2 and the plotting type is "s" or "S". 

## start of code

O3<-c(0.8,NA,0.7,1.1,0.9,5.5,1.3,1,1.2)

## The following error is reported with the two commands below:
## Error in plot.xy(xy, type, ...) : unable to allocate memory (in GPolygon)

plot(O3,type="s")
plot(O3,type="S")

## The following commands work without problems
plot(O3,type="l")
plot(c(0.6, O3),type="s")
plot(c(0.4,0.6, O3),type="s")
plot(O3[2:length(O3)], type="s")

## end of code

Kind regards

Ren?



[Rd] plot with NAs in x and type="s" (PR#9046)
lor at zhwin.ch