Re: [R] plotting picture data

From: Petr Pikal <petr.pikal_at_precheza.cz>
Date: Fri 04 Aug 2006 - 23:51:16 EST


Hi

seems to me that it can be done by image. See ?image.

Just as illustration.
mat<-matrix(sample(c(1,rep(2,10), rep(3,50)), 1000, replace=T), 100,100)
for(i in 1:6) mat[i,c(1:(50-5*i),(50+5*i):100)]<-NA for(i in 14:9) mat[i,c(1:(50-5*(15-i)),(50+5*(15-i)):100)]<-NA image(1:100,1:100,mat)

HTH
Petr

On 4 Aug 2006 at 15:12, Gichangi, Anthony wrote:

From:           	"Gichangi, Anthony" <anthony@stat.sdu.dk>
To:             	"R-help" <r-help@stat.math.ethz.ch>
Date sent:      	Fri, 4 Aug 2006 15:12:36 +0200
Subject:        	[R] plotting picture data

> Hi R users
>
> I have a dataset which represents points that are market by patients
> as the source of pain. Basically the patients indicates by a cross on
> a chest pictures where he/she thinks is the source of pain. The data
> was then digitalized by divinding the chest into small squares and
> each square was give value 1 if it was the center 2 if it was touched
> by the markings and 3 if it was not touched. I would like to plot
> this data on the chest like graph showing the intesities of different
> points and later stratify the grouping variables to see the
> difference.
>
> Has anybody got an idea how I can go around this ?
>
> Help is highly appreciated.
>
> Regards
>
> Anthony Gichangi, M. sc.
> Department of Statistics.
> JB. WinslÝvej 9B,
> DK 5000 Odense C.
> Tel: 00 45 6550 3379
> Mobile: 00 45 61105805
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html and provide commented,
> minimal, self-contained, reproducible code.

Petr Pikal
petr.pikal@precheza.cz



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri Aug 04 23:57:27 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 05 Aug 2006 - 02:18:14 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.