Re: [R] customise tick marks

2018-09-13 Thread roslinazairimah zakaria
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

Re: [R] customise tick marks

2018-09-12 Thread Jim Lemon
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

[R] customise tick marks

2018-09-11 Thread roslinazairimah zakaria
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