search for: lengthout

Displaying 2 results from an estimated 2 matches for "lengthout".

2013 Mar 25
0
plot Raster
Dear all, I am trying to plot an image so I am trying this through raster layer. You can copy paste the following require('raster') Data<-matrix(data=rnorm(900,80,20),nrow=30,ncol=30) rasterData<-raster(Data) lengthOut<-5 xAxisFrequencies<-seq(800,900,length.out=lengthOut) plot(rasterData, ylab="",xaxt="n",yaxt="n") axis(1, at=seq(0,1,length.out=lengthOut), xAxisFrequencies, col.axis = "blue") What I want is to add a customized x label, but the last line I gave abo...
2013 Mar 25
2
Plot Matrix with Data
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)),levels=seq(0,1,by=0.1)) +                   labs(x = "MHz", y = "Threshold", fill = "Duty Cycle") +                   geom_ra...