Hi Jim,
It works beautifully.
Thank you very much for your help.
On Wed, Sep 12, 2018 at 5:58 PM Jim Lemon wrote:
> Hi Roslinazairimah,
> You seem to be using the dotplot function from the lattice package. If so:
>
> dotplot(cyl ~ mpg, data = mtcars, groups = cyl, cex=1.2,
> scales=list(y=lis
Hi Roslinazairimah,
You seem to be using the dotplot function from the lattice package. If so:
dotplot(cyl ~ mpg, data = mtcars, groups = cyl, cex=1.2,
scales=list(y=list(labels=sort(unique(mtcars$cyl,
main="Gas Milage for Car Models", xlab="Miles Per Gallon")
Jim
On Wed, Sep 12, 2018 at 4
Dear r-users,
I want to draw dotplot for mtcars data according to cyl. There are three
types of cylinder 4,6,8. However when we draw it does not use 4,6,8 instead
label it as 1,2,3.
I have this code and would like to customise the tick mark according to cyl
groups:
dotplot(cyl ~ mpg, data = mtc
3 matches
Mail list logo