Re: [R] Help in debugging a script

2018-07-16 Thread Frederic Ntirenganya
Dear Jim, I am asking the sum of malaria cases from Sep to Dec. I am also getting the plot but which has false values. After going through them, I found that the script is giving the right results. Thanks alot. Frederic Ntirenganya Nyanza District, Data Mnager. Mobile:(+250)788757619 Email: fr.

Re: [R] Help in debugging a script

2018-07-16 Thread Jim Lemon
Hi Frederic, You are asking for the sum of cases in the months September to December for the years 2012 to 2017. I get a plot that shows that from: plot(busoro[,"X"],busoro[,"Sep"] + busoro[,"Oct"] + busoro [,"Nov"] + busoro[,"Dec"],type="b",ylab="Malaria Cases",xlab="Year") What sort of plot wer

[R] Help in debugging a script

2018-07-15 Thread Frederic Ntirenganya
Dear Friends, I would like to ask for help. I am plotting monthly data as seasonal by adding particular months but I am getting an unexpected graph. What I want is why and what can be another alternative? Here is the data and R script busoro <- read.csv("G:/Fredo/PAPER/Malaria climate paper/data