search for: datatoplot

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

Did you mean: dataplot
2012 Nov 29
1
Coerce rownames to factor for ordering
...might be an easy one but I cannot think of a way to do this other than what I am currently attempting. I simply want to sort my data frame's rownames by a defined vector so that the plots I generate from that vector are in the desired order Consider the test data below: #Create test data DataToPlot.. <- data.frame("Location1" = c(100,200),"Location2" = c(200,400)) #Name rowns rownames(DataToPlot..) <- c("Fall","Summer") #Attempt to coerce row names to factors rownames(DataToPlot..) <- as.factor(rownames(DataToPlot..)) #Attenmpt to sort ro...
2013 Feb 20
1
ggplot2 customizing a plot
...I want some help improve my ggplot as following: Make the plottable area with grid, so is easy one to see where each box refers to x and y values. Add a color bar but with fixed values, that I want to specify. How   I can do those two? Before is some code what I have tried so far. Regards Alex DataToPlot<-matrix(data=seq(1:9),nrow=3,dimnames=list(seq(1,3),seq(4,6)))                       require(reshape) require(ggplot2) require(raster)                                                                                                                                                               ...