[R] incorrect number of dimensions

2014-09-11 Thread Marie-Eve St-Onge
Dear all, I'm trying the following experiment simulation, but I'm receiving this error: > probs()Error in x[j, 4] : incorrect number of dimensions however, the simulation works fine outside the function statement{}. What am I doing wrong? # Create some fake data and call the function: df <- data.

[R] How to plot a similar graph

2014-09-18 Thread Marie-Eve St-Onge
Dear all, I would like to draw something similar to the following picture, does anyone know a better strategy to start? http://www.psrd.hawaii.edu/WebImg/Pyx-thermometer.gif Eve [[alternative HTML version deleted]] ___