Grokbase Groups R r-help May 2012
FAQ
Given the attached plot,
how can I locate the center text with "Mean and SD" so that it can be
placed exactly under "---emp".?

The current code I have is this:

L = list(bquote(Em.Mean ==.(new_avg)), bquote(Em.SD==.(new_std)),
bquote(Th.Mean ==.(theor_avg)),
bquote(Th.SD==.(theor_sd)))

legend("topright", c(kids,"emp."), cex=0.7, bty="n", col=c(cm.colors(6), "red"),
pch=c(rep(19, 6), -5), lty = c(0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0), )

# How can I locate this
legend("topcenter", cex=0.5, bty="n", legend=sapply(L, as.expression))

-G.V.

Search Discussions

  • Uwe Ligges at May 16, 2012 at 3:20 pm

    On 16.05.2012 02:13, Gundala Viswanath wrote:
    Given the attached plot,
    Nothing came through.
    how can I locate the center text with "Mean and SD" so that it can be
    placed exactly under "---emp".?

    The current code I have is this:

    L = list(bquote(Em.Mean ==.(new_avg)), bquote(Em.SD==.(new_std)),
    bquote(Th.Mean ==.(theor_avg)),
    bquote(Th.SD==.(theor_sd)))
    Not reproducible.

    Uwe Ligges


    legend("topright", c(kids,"emp."), cex=0.7, bty="n", col=c(cm.colors(6), "red"),
    pch=c(rep(19, 6), -5), lty = c(0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0), )

    # How can I locate this
    legend("topcenter", cex=0.5, bty="n", legend=sapply(L, as.expression))

    -G.V.



    ______________________________________________
    R-help at r-project.org mailing list
    https://stat.ethz.ch/mailman/listinfo/r-help
    PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
    and provide commented, minimal, self-contained, reproducible code.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupr-help @
categoriesr
postedMay 16, '12 at 12:13a
activeMay 16, '12 at 3:20p
posts2
users2
websiter-project.org
irc#r

2 users in discussion

Gundala Viswanath: 1 post Uwe Ligges: 1 post

People

Translate

site design / logo © 2017 Grokbase