Re: [R] Adding additional points to ggplot2

2013-08-16 Thread zelfortin
Hi, you could also use a factor variable to differentiate your observed and estimated values and change shape and/or color based on that factor. e.g. ggplot(aes(x=X,y=Y, shape=factor(Type))) + geom_point() #For changing shapes ggplot(aes(x=X,y=Y, color=factor(Type))) + geom_point()

Re: [R] lme: object is not a matrix

2013-08-02 Thread zelfortin
Hi, make sure your data is in a data frame: Data - data.frame(t,can2p,code) just specify in which object you find those specific variables by using object$ before each one. I hope this solve the problem. If not, post your script, it's really hard to work with only an error message! Cheers

Re: [R] Removing null vector that is not in .csv file data

2013-08-02 Thread zelfortin
Hi, you could try going in your spreadsheet and delete columns/rows that are seemingly empty (delete a lot a of them), then try again. Sometimes in your spreadsheet you enter values then you delete them. This leaves the cells active and when you save the csv file, it writes some commas with