I want to create the following type of graph with line, bar and heatmap with a dataset like this:

pos <- 1:40 # X axis 
barvar <- rnorm (40, 5, 2) # y axis for barplot 
linevar <- rnorm (40, 0, 0.5) # yvar for line plot 
heatmapvar <- rep(1:5, 8) # yvar plot for heatmap (color coded) plot 
myd <- data.frame (pos, barvar, linevar, heatmapvar) 

# labeling positions 
label <- c("A", "B", "C", "D", "E", "F", "G", "H", "I")
position <- c(1, 5, 10, 15, 20, 25, 30, 35, 40)

enter image description here

没有正确的解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top