I want to plot two heatmaps in a row. I use par for that. It works fine for plot but it does not for heatmap function, why?
This works as expected:
> par(mfrow=c(1,2))
> plot(iris$Sepal.Length,iris$Sepal.Width)
> plot(iris$Sepal.Length,iris$Petal.Width)
This not:
> par(mfrow=c(1,2))
> heatmap(as.matrix(iris[1:3,1:3]))
> heatmap(as.matrix(iris[2:4,1:3]))
Result: only one heatmap is plotted. Expected result: two heatmaps in a row.
