search for: phftt

Displaying 4 results from an estimated 4 matches for "phftt".

2005 Nov 23
2
Dancing lissajous
We can't post images here so I've put up a web page to show off a neat little animation in R: http://www.geocities.com/robsteele/ Adios!
2005 Oct 16
2
Animated lissajous
Here's some code to make lissajous dance. I've attached a small sample GIF. Cheers, Rob Steele robsteele at yahoo dot com plot.lissajous = function(omega.x, omega.y, delta = 0, num.thetas = 200) { thetas = seq(0, 2 * pi, length = num.thetas) xs = sin(omega.x * thetas + delta) ys = cos(omega.y * thetas) plot(xs, ys, type = 'l', lwd = 3, ann = FALSE, axes = FALSE) }
2006 Apr 25
1
Overlapping assignment
Is it valid to assign a slice of an array or vector to an overlapping slice of the same object? R seems to do the right thing but I can't find anything where it promises to. > a <- 1:12 > a[4:12] <- a[1:9] > a [1] 1 2 3 1 2 3 4 5 6 7 8 9 > b <- 1:12 > b[1:9] <- b[4:12] > b [1] 4 5 6 7 8 9 10 11 12 10 11 12
2006 May 10
2
Legend titles in log plots broken? (ver. 2.2.1)
Legend titles work in linear plots: curve(1/x, xlim = c(0, 1)) legend(x = 'topright', inset = 0.04, legend = '1/x', lty = 1, title = 'Legend Title') But when you change to a log plot on either dimension things get screwy: curve(1/x, xlim = c(0, 1), log = 'y') legend(x = 'topright', inset = 0.04, legend = '1/x', lty = 1,