[R] ts command and stl function
Hi, I have imported a csv file into R which contains one column (the rate er 100,000 population of a disease, by month over 11 years) I coerced into a time series using the following function, tstkr-ts(tkr,deltat=1/12) This seems to work fine, and when I check for the class of the object using class(tstkr) I get ts as the response. When I try to use the stl function in stats I get the error message: Error in stl(tstkr)only univariate series are allowed I then tried this: tstkr - ts(c(tkr), deltat=1/12) however this made no difference...I still get an error - does anybody know what is wrong? Regards, Daniel __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] Rotate values on Y axis
Hi, I have been working through one of the examples on the FAQ about rotating the labels on the x axis, I need to do the same but for the y axis. I have managed to change some of the code, but I am still not getting there, there is still something wrong. My syntax is as follows: par(mar = c(5, 7, 4, 2) + 0.1) plot(1 : 8, yaxt = n, ylab = ) axis(2, labels = FALSE) labels - paste(Label, 1:8, sep = ) text(1:8, par(usr)[3] - 0.25, srt = 45, adj = 1, + labels = labels, xpd = TRUE) If anybody knows what is wrong then I would appreciate your help...been working on this for far too long already! Regards, Dan __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] Rotate numbers on the Y axis on a multiple Boxplot chart
Hello All, I am trying to format a box plot chart for a report so it matches other charts I have created in other software programs. My problem is that I need to rotate the values on the Y axis by 45 degrees, I have tried to use the srt parameter but with no luck? Does anybody have any suggestions? Regards, Daniel My syntax is as follows: boxplot(int~sortf,notch=TRUE,outline=FALSE,col=DarkSeaGreen4, ylab = Length of stay in days,ylim=c(0, 100),xlab=Trust (see key)) __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html