|
Subject: | XploRe: Learning Guide |
See XploRe: |
Quantlet: | graph22 | |
Description: | Plotting a function. | |
Download: | graph22.xpl |
library("plot") ; loads library plot xmin = 0 ; grid minimum xmax = 2*pi ; grid maximum n = 100 ; number of grid points x = xmin + (xmax-xmin)/(n-1) .* (0:n-1) ; generates grid y = sin(x) ; computes sin(x) plot(x~y) ; plots data set
Subject: | XploRe: Learning Guide |
See XploRe: |