Simple ?heatmap? of temperature in R (ggplot2) -


I'm trying to create a simple date * Temperature heatmap (? Raster graph)? The temperature group is something like, but only with the date axis (no time variable.) I would like to use ggplot, but Running would be misleading. Data is produced in the right direction, but I can not understand how to get rid of Y-axis for. I appreciate any help

  dat   

Div class = "post-text" itemprop = "text">

So you do not want to do temporary map on the Y axis?

Ok, You can use a fixed value and skip the y-axis:

  dat <- data.frame (temp = sample (20,100, location = TRUE), date = Required (ggplot2) ggplot (dat, aes (x = date, y = 1)) as the (as.Date ("2011-07-01"), = 1, len = 100) + geom_tile (aes (fill = Temp) + scale_fill_gradient (low = "blue", high = "red") + Labs (y = null) + scale_y_continuous (break = null)  

image here Enter details


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -