[R] Invalid plot type '1'

Stephen Liu satimis at yahoo.com
Mon Aug 9 05:25:51 CEST 2010


Hi Erik,

I got it.  Thanks


On
R-Project
The R Manuals
http://www.r-project.org/

There are several manuals.  


Whether I should follow:-

An Introduction to R
http://www.r-project.org/


B.R.
Stephen L



----- Original Message ----
From: Erik Iverson <eriki at ccbr.umn.edu>
To: Stephen Liu <satimis at yahoo.com>
Cc: r-help at r-project.org
Sent: Mon, August 9, 2010 10:28:16 AM
Subject: Re: [R] Invalid plot type '1'

On 08/08/2010 09:14 PM, Stephen Liu wrote:
> Hi Erik,
>
> I followed following video;
>
> Statistics with R (part 3: plot and history tutorial)
> http://www.youtube.com/watch?v=NfH5peM1RtI&feature=related
>
> It is type = "1".
>
> A graph was generated there.  But I got an error msg
>

No, it was type = "l" (the letter 'el'), which is short for "lines" as seen in 
?plot.

Listen on the video:

Start at 2:45,

"type equals line 'l'" is what the presenter says... Clearly it is an "l" (the 
letter el).

Regardless, the official documentation for R is not YouTube videos.  ?plot 
clearly tells you what are valid values for the "type" parameter in plot.

>
> ----- Original Message ----
> From: Erik Iverson<eriki at ccbr.umn.edu>
> To: Stephen Liu<satimis at yahoo.com>
> Cc: r-help at r-project.org
> Sent: Mon, August 9, 2010 9:55:51 AM
> Subject: Re: [R] Invalid plot type '1'
>
> On 08/08/2010 08:47 PM, Stephen Liu wrote:
>> Hi folks,
>>
>>> x
>> [1] 1 2 3 4 5
>>> y
>> [1]  6  7  8  9 10
>>
>>> plot(x,y, type = "1" )
>> Error in plot.xy(xy, type, ...) : invalid plot type '1'
>>
>>
>> I looked on man plot but unable to resolve.  Please help.  TIA
>
> You never say what you expect type = "1" (that's the digit "1") to do.
>
> Did you mean "l" instead of "1"?
>
>
>





More information about the R-help mailing list