[R] Crosstabulation with a frequency variable

2015-08-13 Thread Dean1
Hi all, I've had a few years experience with R, which is why this is so frustrating, my problem seems so simple but I can't find a solution. I have a data frame in the following form: data.frame(var1=c(0,0,1,1),var2=c(0,1,0,1),freq=c(11,12,13,14)) How do I create a crosstab with frequencies?

[R] graph shading is overlaying axes

2009-12-28 Thread Dean1
How can I resolve this problem?... As a general example, plot (1:4) polygon(c(0,0,5,5),c(0,5,5,0), border=lavenderblush1, col = lavenderblush1) ###see how this overlays the axes lines #I have tried... for (k in 1:4) axis(k, lwd.ticks=0, label=F) #...but this misses the corners Any

Re: [R] graph shading is overlaying axes

2009-12-28 Thread Dean1
Thanks, this solves the problem -- View this message in context: http://n4.nabble.com/graph-shading-is-overlaying-axes-tp989750p989787.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] refering to the 'boundaries' of a graph

2009-12-28 Thread Dean1
Please see this code for a demonstration of my problem... xlim - c(-1,5) plot(1:4, xlim=xlim) abline(v=xlim[1]) abline(v=xlim[2]) When I refer to xlim, it is not referring to the boundaries of the graphical region, it refers to the maximum and minimum xticks. My question is how can I refer to