[R] Invalid plot type '1'

Erik Iverson eriki at ccbr.umn.edu
Mon Aug 9 03:55:51 CEST 2010


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