Displaying 20 results from an estimated 10000 matches similar to: "Greek in text()"
2002 Apr 22
2
lattice x(y)lab and expression
Another question about lattice:
Is there a way to use plotmath in the labels and strips?
E.g.
xyplot(y~x|group,data=test.df,
panel=function(x,y,subscripts,df) {
llines(x,y,col="black",lwd=2)
llines(x,df[subscripts,"lowerCI"],lty=2,col="#aaaaaa")
llines(x,df[subscripts,"upperCI"],lty=2,col="#aaaaaa")
},
2005 Nov 01
2
Greek letters in plots
Hi, all. I know that this is probably something that others have asked,
but I can't find a reference in either the FAQ or the help pages.
I'm trying to find a way to put Greek letters as a label of the plot
*with* a value from the data. Previously I've used pasted and the word
"rho".
* paste("rho=", cor2[i])
will produce a label of
2006 Apr 21
1
R graph strip in Greek Letters
Hi all,
I have one question on xyplot() function.
I am trying to produce a graph by this code.
tmp <- data.frame(a=rnorm(20),
b=rnorm(20),
rho=factor(rep(1:2, c(10,10))),
k=factor(rep(1:5,4)))
tmp.lattice <-
xyplot(a ~ b | rho*k, data=tmp,
par.strip.text=list(font=5),
strip=function(...) strip.default(...,
2006 May 04
1
plot greek letter in italic
Hi,
Could someone please let me know how to plot greek letters in italic.
text(0,14,expression(italic(rho)[italic(f)])) only plots the f in italic and
text(37,40,expression(italic(rho))) doesn't plot rho in italic.
I have checked demo(plotmath), ?plotmath, FAQ, and the archives
2004-2006 without finding the answer.
I'm using R 2.1.1. and Windows XP.
Thanks!
Tord
--
Tord Sn?ll
2009 Nov 03
2
how to display a string containing greek chrs and variables
I'm trying something that I thought would be pretty simple, but it's
proving quite frustrating...
I want to display, for instance, the correlation coefficient "rho" in a graph.
I can do something like:
text(x, y, paste("rho =", cor))
where cor would be my previously calculated correlation coefficient,
and x and y the coordinates.
Obviously that displays
1999 Oct 23
1
greek letters and deparsing in title
Dear All,
In the title of a plot, I would like to mix greek letters with numbers, where
the numbers are obtained from a particular function to a vector (e.g., max(x));
in each call, the value of this vector can change.
Without greek symbols I use something like:
title(sub=paste("x1=", deparse(x[1]),"beta = ",deparse(max(x)), "rho = ",
deparse(min(x))))
but I'd
2002 Apr 22
2
lattice help
I'm new to lattice and can't figure out what the problem is with the
following example:
#########################
> library(lattice)
Loading required package: grid
Attaching package `lattice':
The following object(s) are masked _by_ .GlobalEnv :
xyplot
The following object(s) are masked from package:base :
levels
> test.data <- data.frame(x=rnorm(100),
+
1999 Feb 18
1
[Q] use of expression() in plot() vs. hist()
In plot() I can get greek symbols into text items without trouble.
However, some of the same commands don't work as I would expect with
hist(). See the example below.
> plot(1:10, 2:11, xlab=expression(paste("scaled", rho)))
---- works as expected, ie. prints the greek rho
> hist(c(0,0,0,0,4,5,6,6,6,8), xlab=expression(paste("scaled", rho)))
Error: Object
2008 Jan 23
2
from a normal bivariate distribution to the marginal one
Hello,
I'm quite new with R and so I would like to know if there is a command
to calculate an integral.
In particular I simulated a bivariate normal distribution using these
simple lines:
rbivnorm <- function(n, # sample size
mux, # expected value of x
muy, # expected value of Y
sigmax, # standard deviation of
2002 Apr 25
2
install a package from CRAN
Hi,
I've tried to install package "tseries" on my computer (on Windows) but it
doesn't work so far. I have Perl but no compilers (C or Fortran) installed.
So could anyone who happens to have them please mail me the binaries?
Many thanks in advance,
Sonchawan
_________________________________________________________________
2007 Oct 18
1
R-graphics printing greeks
I have tried to print a table of greek alphabet names and symbols
without success. I can print one character at a time but can't seem to
find a way to automate an entire list of the symbols. Some of the code I
have tried is below. I have searched on help, worked the examples in the
December 2002 R Help Desk article and plotmath but have not been able
to find a way to accomplish the
2002 Apr 30
3
A sample question
Hello.
Given a vector 1 3 4 2 8 9 5
I want to obtain a vector with all 0 except in the second position and in
the fifth, where the numbers are the same of the first vector.
The new vector must be
0 3 0 0 8 0 0
Thank you very much.
Excuseme but my mind is out of order.
Alessandro
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2002 May 06
3
Using Object's Name in Function
Hi,
Suppose I have a function:
myfunc <- function(x, y) {
...
}
And within the function I want to print out the name of the x, y
vectors. For example, if I do:
> myfunc(foo, goo)
[1] "foo" "goo"
It shall return "foo", "goo" (with or without quotes is fine), where foo
and goo are two vectors with numbers.
I know this sounds strange, but I'd
2006 Nov 30
4
Quicker way of combining vectors into a data.frame
Hi,
In a function, I compute 10 (un-named) vectors of reasonable length
(4471 in the particular example I have to hand) that I want to combine
into a data frame object, that the function will return.
This is very slow, so *I'm* doing something wrong if I want it to be
quick and efficient, though I'm not sure what the best way to do this
would be.
I know it is the combining into data
2002 May 03
2
delete rows
Hello,
I would like to know how to delete some rows?
Suppose I have a large data frame look something like this:
x1 x2 x3 ..............
a 1 0.45
b 1 0.41
c 0 0.43
a 1 0.39
d 1 0.40
e 0 0.41
r 1 0.42
a 0 0.46
. . ..
I would like to have another data frame which has all
2002 May 06
3
function sort.list()
Derar R-people
I have troubles understanding what the function sort.list() is doing. On
the homepage it says that it returns a permutation which rearranges a
vector into ascending or descending order (like order() but on a vector
instead of a sequence).
> sort.list(c(0, 2, 10, 11, 4))
[1] 1 2 5 3 4
which does not make sense to me.
In fact I am getting the same (non-sensical) result using
2002 Apr 19
4
Multidimensional scaling
A student of mine wants to use R to do some nonmetric multidimensional
scaling. According to the R FAQ, there's a package called pcurve that
computes multidimensional scaling solutions, but I was not able to locate
it the contrib page (I am a Windows user with R version 1.4.1). Can
anyone tell me whether it is possible to do nonmetric multidimensional
scaling with R, and if so, how?
John
2010 Jan 21
1
correlation significance testing with multiple factor levels
[Apologies in advance if this is too "statistics" and not enough "R".]
I've got an experiment with two sets of treatments. Each subject either received
all treatments from set A or all treatments from set B.
I can compute the N pairwise correlations for all treatments in either set using
cor(). If I take the mean of these N pairwise correlations, I see that the
effects
2009 Aug 17
6
graph label greek symbol failure
Readers,
Previous questions about this requirement have been for m$ users, my
failure occurs using linux.
I have tried to add the delta (?) symbol to the y axis label and the
result is &D, using the command:
...ylab="?t"...
Any advice please?
rhelp at conference.jabber.org
mandriva 2008
r 251 (27-06-07)
2003 Feb 10
2
Wireframe (lattice) questions
I have a few questions on formatting wireframe plots:
1. How can I remove (or at least "white-out") the border on the plot?
(I.e., the 2-d box around the whole plotting area, not the 3-d cube). I'm
willing to hack the code if necessary.
2. Is it possible to suppress plotting of all sides of the cube except
for the axes?
3. Is there a reliable way to print expressions in