Re: [R] Plot Matrix with Data

2013-03-26 Thread Alaios
6, 2013 10:43 AM Subject: Re: [R] Plot Matrix with Data Hi: I don't understand why you're truncating the duty cycle at 90 when the data range from 15 to 150 - the effect of doing that is the set of grey squares in the heatmap corresponding to missing values. The reason your color scale

Re: [R] Plot Matrix with Data

2013-03-26 Thread Alaios
______ From: Dennis Murphy Sent: Monday, March 25, 2013 9:17 PM Subject: Re: [R] Plot Matrix with Data Hi Alex: Here are a couple of raw examples, one with a 'discretized' color gradient and another with ordered factor levels in groups of length

[R] Plot Matrix with Data

2013-03-25 Thread Alaios
Hi , I would like to use ggplot2 to plot a matrix as an image. You can copy paste the following Data<-matrix(data=rnorm(900,80,20),nrow=30,ncol=30) lengthOut<-5 Lengths<- 15 library(reshape2) library(ggplot2) tdm <- melt(Data) ggplot(tdm, aes(x = Var2, y = Var1, fill = factor(value)),l