Dear all, I want to plot the values of a data frame in an image using as.character() as below. It works fine for values lower than 10. However, data values >10 are plotted as ones, i.e. 1, in the plot.
Could someone please let men know how to plot values larger than 10. image(vgridpred, loc = vgrid, col=gray(seq(1,0.1,l=30)), xlab="Coord X", ylab="Coord Y") points(valktreedat$x, valktreedat$y, col = "blue", pch = as.character(valktreedat$pred.tg.gu)) range(valktreedat$pred.tg.gu) [1] 4.674906 18.160361 For values larger than 10 of valktreedat$pred.tg.gu the number "1" is plotted with the above code. R 1.7.0, Win XP Thanks! Sincerely, Tord ----------------------------------------------------------------------- Tord Sn�ll Avd. f v�xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Villav�gen 14 SE-752 36 Uppsala, Sweden Tel: 018-471 28 82 (int +46 18 471 28 82) (work) Tel: 018-25 71 33 (int +46 18 25 71 33) (home) Fax: 018-55 34 19 (int +46 18 55 34 19) (work) E-mail: [EMAIL PROTECTED] Check this: http://www.vaxtbio.uu.se/resfold/snall.htm! ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
