Skip to content
Prev 346046 / 398502 Next

DOT PLOT help!!

No sign of the attached plot. The R-help list is very picky about what files it will accept. IIRC, you usually are able to attach ASCII files with a txt suffix and to attach pdf files so probably you tried to send something like a png or jpeg and the R-help server stripped it away as a possible source of malware.

When asking a question on the list it is usually very helpful to send sample data and any (minimal) code that is applicable to the problem.

The easiest way to supply data is to use the dput() function. Example with your file named"testfile": dput(testfile) Then copy the output and paste into your email. For large data sets, you can just supply a representative sample. Usually, dput(head(testfile, 100)) will be sufficient. 

This is particularly important as R has many types of data formats, some of which look the same when printed on the screen, (see example, below) and by supplying the data in dput() format you ensure that R-help readers can load 'exactly' the same data as you are working with. 

#====================copy and run in R=================#
dat1  <- data.frame(aa = as.factor(1:5), bb = 1:5)   
dat1 # data looks identical on the screen      
5*dat1[,"aa"]  # oops   
5*dat1[, "bb"] # okay     
str(dat1)   
#===================================================#

Have a look at https://github.com/hadley/devtools/wiki/Reproducibility and  http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example for some good suggestions on how to frame questions to the list.

BTW, did Don McQueen's response help?

Welcome to R .

John Kane Kingston ON Canada
____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!