Alignement de plusieurs types de graphiques en R (de préférence dans GGPLOT2 ou réseau)

StackOverflow https://stackoverflow.com/questions/9425186

  •  12-11-2019
  •  | 
  •  

Question

Je veux créer le type de graphique suivant avec la ligne, la barre et la carte thermique avec un ensemble de données comme ceci:

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

Pas de solution correcte

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top