alignment of multiple graph types in R (preferably in ggplot2 or lattice)
문제
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)
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow