inst/examples/curve-tikz.R

par(par(mar = c(4.5, 4, 0.2, 0.2)), mfrow = c(2, 1))
chippy = function(x) sin(cos(x) * exp(-x / 2))
curve(chippy, -8, 7, n = 2008,
      xlab = "$x$", ylab = "$\\mathrm{chippy}(x)$")
curve(sin(x) / x, from = -20, to = 20, n = 200,
      xlab = "$t$", ylab = "$\\varphi_{X}(t)$")
yihui/MSG documentation built on Aug. 16, 2021, 12:13 p.m.