search for: r_workshop

Displaying 1 result from an estimated 1 matches for "r_workshop".

2004 May 31
2
[OT] "plot y against x"
...x = -3:5 % plotting values (range) y = 2*x + 3 % a linear function of x plot(x,y) % plot x against y and at least two refer to "Statistical analysis with R" (so maybe I'm not so off-topic after all), also unequivocal, e.g.: http://www.nbn.ac.za/Education/11-stats-2004/R1.8/r_workshop.pdf Example: Plotting functions Assume that you were to plot a function by hand. One possibility of doing it is to 1. Select some xvalues from the range to be plotted 2. Compute the corresponding y = f(x) values 3. Plot x against y 4. Add a (more or less) smooth line connecting the...