[R] multiple graphs on one plot

2019-05-12 Thread Andrew Halford
Hi Listers I've been trying to make a single graphic that has frequency histograms for male and female mud crabs displayed side by side (such as when using the beside=TRUE command for barplots). I then want to display a normal distribution on top of the male and female histograms. I have been

Re: [R] Flip heatmap color range in base R?

2019-05-12 Thread Bert Gunter
?heatmap (carefully!) and note the reference to "col" in the "..." argument (and the need to consult ?image). I suspect that your other questions can be similarly answered by a careful reading of the Help file, but I have not checked. You should. Bert Gunter "The trouble with having an

[R] Flip heatmap color range in base R?

2019-05-12 Thread Serena De Stefani
I am building a simple heat map in base R. This is my matrix: stleft = matrix( c(0,5,5,2,6,8,4,6,9), nrow=3, ncol=3) colnames(stleft) <- c("Narrow","Wide", "Wider") rownames(stleft) <- c("Person", "Object","Bare") stleft The matrix looks like this: