Capital of Statistics » R Language

For Stat579 Students @ ISU (2009 Fall)

(7 posts)
  1. yihui
    Key Master

    We will try our best to offer additional help for learning R in this forum. Questions and discussions are warmly welcome!

    par(mar = rep(0, 4))
    for (i in 1:360) {
         plot(1, ann = F, type = "n", axes = F)
         text(1, 1, "Welcome", srt = i,
             col = rainbow(360)[i], cex = 7 * i/360)
         Sys.sleep(0.01)
    }
    Posted 11 months ago #
  2. happy_rabbit
    Member

    up~up~

    Posted 11 months ago #
  3. yihui
    Key Master

    Thanks!

    Another silly demo to show how xlim works:

    par(mar = rep(0, 4))
    for (i in 1:200) {
        plot(1, xlim = c(0, 2), ann = F, type = "n", axes = F, xaxs = "i")
        text(2 - i/200 * 3, 1, "happy_rabbit -___-//", col = topo.colors(200)[i],
            cex = 3)
        Sys.sleep(0.02)
    } 
    Posted 11 months ago #
  4. yanlinlin82
    Key Master

    The effect of the code running in Windows is much better than in Linux. I tried a lot but still can not find any way to avoid the flicker when drawing repeatedly in Linux.

    Posted 11 months ago #
  5. yihui
    Key Master

    Yes I also noticed this phenomenon long ago. Is that something called "double-buffering" which R does not support?

    Posted 11 months ago #
  6. sazimme2
    Member

    I am trying to do a cross tabulation of two variables. Sex and the answer to a survey question. Both variables are factors. This is easy to do using the table function. The problem is that these respondents have weights. Table does not have an option to put in weights. Any ideas? Thanks! I'm in ST 579 so relatively new to R so explanations where you explain why I should do what I should would be appreciated.

    Posted 10 months ago #
  7. yihui
    Key Master

    I'm really excited to see the first guest coming!!

    I started a new topic here: http://cos.name/en/topic/re-how-to-compute-weighted-cross-tabulation-to-sazimme2

    Posted 10 months ago #

RSS feed for this topic

Reply

You must log in to post.