Try
require(lattice)
dotplot(num ~ let, data=mydf)
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 3/17/16, 3:29 AM, "R-help on behalf of Ivan Calandra"
wrote:
>Dear useRs,
>
>I would like to plot data points in a simple
Dear useRs,
I would like to plot data points in a simple scatterplot. I don't have a
lot of data per category, so a boxplot does not make sense.
Here are some sample data:
mydf <- data.frame(let=rep(letters[1:3],each=3), num=rnorm(9),
stringsAsFactors=FALSE)
I would like to do that, which t
That does the trick with base functions!
Thanks Dennis.
Ivan
--
Ivan Calandra, PhD
University of Reims Champagne-Ardenne
GEGENAA - EA 3795
CREA - 2 esplanade Roland Garros
51100 Reims, France
+33(0)3 26 77 36 89
ivan.calan...@univ-reims.fr
--
https://www.researchgate.net/profile/Ivan_Calandra
ht
nt: Thursday, March 17, 2016 11:30 AM
> To: R list
> Cc: Anne CANER
> Subject: [R] plot numeric vs character
>
> Dear useRs,
>
> I would like to plot data points in a simple scatterplot. I don't have
> a lot of data per category, so a boxplot does not make sense.
>
>
;>
>> Cheers
>> Petr
>>
>>
>>> -Original Message-
>>> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Ivan
>>> Calandra
>>> Sent: Thursday, March 17, 2016 11:30 AM
>>> To: R list
>>> Cc: Anne
df$let)))
>
> Cheers
> Petr
>
>
>> -Original Message-
>> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Ivan
>> Calandra
>> Sent: Thursday, March 17, 2016 11:30 AM
>> To: R list
>> Cc: Anne CANER
>> Subject: [R] plot numeri
17, 2016 11:30 AM
To: R list
Cc: Anne CANER
Subject: [R] plot numeric vs character
Dear useRs,
I would like to plot data points in a simple scatterplot. I don't have
a lot of data per category, so a boxplot does not make sense.
Here are some sample data:
mydf <- data.frame(let=rep(le
ation.
library(ggplot2)
ggplot(mydf, aes(x=let, y=num)) +
geom_dotplot(binaxis='y', stackdir='center', dotsize = 0.5)
John Kane
Kingston ON Canada
-Original Message-
From: ivan.calan...@univ-reims.fr
Sent: Thu, 17 Mar 2016 11:29:52 +0100
To: r-help@r-proje
= 0.5)
John Kane
Kingston ON Canada
> -Original Message-
> From: ivan.calan...@univ-reims.fr
> Sent: Thu, 17 Mar 2016 11:29:52 +0100
> To: r-help@r-project.org
> Subject: [R] plot numeric vs character
>
> Dear useRs,
>
> I would like to plot data points in a simpl
, 17 March 2016 23:26
To: R list
Cc: Anne CANER
Subject: Re: [R] plot numeric vs character
So it looks like there is no better "base" solution than Petr's code...
Thank you for your input anyway!
Ivan
--
Ivan Calandra, PhD
University of Reims Champagne-Ardenne
GEGENAA - EA 3795
CR
rsday, March 17, 2016 12:01 PM
> To: R list
> Cc: Anne CANER
> Subject: Re: [R] plot numeric vs character
>
> Thanks Petr,
>
> You're right, no need for points().
> But is there an even simpler way? I still find it strange that plot()
> does not allow points to be p
11 matches
Mail list logo