Re: [R] Plot data in sequence

2018-04-04 Thread roslinazairimah zakaria
Hi Sarah, It works beautifully. Thank you very much. On Thu, Apr 5, 2018 at 12:07 AM, Sarah Goslee wrote: > Hi, > > Thanks for the reproducible example. > > Looking at > str(datn) > would give you a clue. > STATUS is a factor because it contains character values. Factor levels > by default are

Re: [R] Plot data in sequence

2018-04-04 Thread Sarah Goslee
Hi, Thanks for the reproducible example. Looking at str(datn) would give you a clue. STATUS is a factor because it contains character values. Factor levels by default are alphabetical with numbers first, but you can change those. > str(datn) 'data.frame': 36 obs. of 3 variables: $ LEVEL : Fact

[R] Plot data in sequence

2018-04-04 Thread roslinazairimah zakaria
Hi r-users, I would like to draw line plots. However, the plot starts from 11121 data and plot data ENTRY last in the plot. Here is the code and data. datn <- read.table(header=TRUE, text=' LEVEL STATUS CGPA DIPLOMA ENTRY 3.32 DIPLOMA 11121 2.91 DIPLOMA 11122 2.90 DIPLOMA 12131 2.89 DIPLO