Re: [R] image/area plot

2008-01-22 Thread Henrique Dallazuanna
Perhaps you can do this: On 21/01/2008, Marta Rufino <[EMAIL PROTECTED]> wrote: > > Thank you very much for the help. > > > > kk=data.frame(fact=letters[1:10], > freq=c(5,1,10,2,10,7,5,10,30,20)) > res <- rep(kk[[1]], kk[[2]]) > resmat <- matrix(c(res), 10) > image(1:10, 1:10, resmat, col=rainb

Re: [R] image/area plot

2008-01-21 Thread Marta Rufino
Hello, Here it is a better example: http://amarsagoo.blogspot.com/2007/08/on-pie-charts-etc.html best, Marta __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/pos

Re: [R] image/area plot

2008-01-21 Thread Marta Rufino
Thank you very much for the help. > kk=data.frame(fact=letters[1:10], freq=c(5,1,10,2,10,7,5,10,30,20)) > res <- rep(kk[[1]], kk[[2]]) > resmat <- matrix(c(res), 10) > image(1:10, 1:10, resmat, col=rainbow(20)) > grid(ncol(resmat), nrow(resmat)) > > Great! that is much better :-) Still,... any

Re: [R] image/area plot

2008-01-20 Thread Henrique Dallazuanna
Perhaps: kk=data.frame(fact=letters[1:10], freq=c(5,1,10,2,10,7,5,10,30,20)) res <- rep(kk[[1]], kk[[2]]) resmat <- matrix(c(res), 10) image(1:10, 1:10, resmat, col=rainbow(20)) grid(ncol(resmat), nrow(resmat)) ##1 text(expand.grid(seq_len(ncol(resmat)), seq_len(nrow(resmat))), as.character(res))

Re: [R] image/area plot

2008-01-18 Thread Marta Rufino
Yes, that is it, a square pie chart :-) I did not knew the name... sorry... Does anyone knows about it? Thank you very much, Best wishes, Marta hadley wickham wrote: > Do you have an example graphic that shows what you're trying to > create? I can't figure out if you want something like a square

Re: [R] image/area plot

2008-01-18 Thread hadley wickham
Do you have an example graphic that shows what you're trying to create? I can't figure out if you want something like a square pie chart (aka waffle chart), a stacked barchart, a levelplot, or something else. Hadley On Jan 18, 2008 6:06 AM, Marta Rufino <[EMAIL PROTECTED]> wrote: > Dear R users,