similar to: R-alpha: Mathematical Anotation in Plots

Displaying 20 results from an estimated 8000 matches similar to: "R-alpha: Mathematical Anotation in Plots"

1997 Sep 11
1
R-alpha: Mathematical Annotation in R (plots)
[[ this has first bounced to me as 'list-manager', because the subject said ``Returned mail: User unknown'' Paul, I assume you'd approve the subject I've chosen... -- Martin M ]] hi for those who are interested ... the following is a LaTeX document which describes the current state of mathematical expression syntax in R paul ------CUT
2008 Sep 01
1
linebreak in mathematical anotation?
Hi I am using mathematical anotation to make the labels in a barplot in italics. as an example (adapted from http://finzi.psych.upenn.edu/R/Rhelp02a/archive/129808.html): tt <- c("italic(First~~set)", "italic(Second~~set)", "italic(third~~set") barplot(1:3, names.arg=parse(text=tt)) But I would like to have it with "set" in a second column, like tt
1999 Aug 19
1
Mathematical Superscript on the y-axis of a plot
I am trying to get superscripts on the y-axis. I keeping getting syntax error: This works as advertised: > plot(c(1:10), ylab= expression(paste(x^ theta))) This does not: >plot(c(1:10), ylab= expression(paste(x^ {++}))) Note that I am trying to get ++ as superscript. Any suggestions? Thanks. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing
2003 Aug 15
2
Oja median
I discovered recently that the phrase "Oja median" produces no hits in Jonathan Baron's very valuable R search engine. I found this surprising since I've long regarded this idea as one of the more interesting notions in the multivariate robustness literature. To begin to remedy this oversight I wrote a bivariate version and then decided that writing a general p-variate version
2012 Apr 27
1
expression() and font.lab ?
Hi.. I managed to use expression() for superscripting and subscripting values in my axis labels. However, I notice that the font and style that I had passed through par() are ignored. I used : par(font.lab=2, font=2, family="sans") but when I employ expression() for my xlab, the styling given above is completely ignored. I would greatly appreciate it if someone knew of a method of
2003 Jun 20
3
combining mathematical notation and value substitution
Dear People, I need to make a label which both contains math notation as well as substitutes a value for an object. In the following label, len and theta are one dim variables, and I am substituting their values appropriately. This label looks fine except that I want the greek symbol for theta to appear instead of the word `theta'. How can I do so most easily? I don't understand the
1997 May 08
1
R-alpha: Equations in Plots
Paul Murrell and I are making some progress with making mathematical expressions available in graphs. The idea is to use R expressions to represent the mathematical expressions. So far we have (or will soon have): R LaTeX x^i x^i x[i] x_i alpha \alpha Alpha \Alpha hat(x) \hat{x} \widehat{x} bar(x) \bar{x} \overline{x} x+y x+y x-y x-y x/y x/y (x) (x) {x} {x} frac(x,y)
2005 Apr 04
3
plotting mathematical notation and values substitution
Dear R-users, I'm trying to add a title on a plot with both mathematical notation and values substitution. I read the documentation and search the mailing list but I was not able to solve my problem. Actually, there is a message by Uwe Ligges on June 2003 which addresses a question very close to mine, but the code provided doesn't work. The code is the following: # I add this to let you
2006 Oct 21
2
problem with mode of marginal distriubtion of rdirichlet{gtools}
Hi all, I have a problem using rdirichlet{gtools}. For Dir( a1, a2, ..., a_n), its mode can be found at $( a_i -1)/ ( \sum_{i}a_i - n)$; The means are $a_i / (\sum_{i} a_i ) $; I tried to study the above properties using rdirichlet from gtools. The code are: ############## library(gtools) alpha = c(1,3,9) #totoal=13 mean.expect = c(1/13, 3/13, 9/13) mode.expect = c(0, 2/10, 8/10) #
2006 May 05
0
Spline integration & Gaussian quadrature (was: gauss.quad.prob)
Spencer Thanks for your thoughts on this. I did a bit of work and did end up with a method (more a trick), but it did work. I am certain there are better ways to do this, but here is how I resolved the issue. The integral I need to evaluate is \begin{equation} \frac{\int_c^{\infty} p(x|\theta)f(\theta)d\theta} {\int_{-\infty}^{\infty} p(x|\theta)f(\theta)d\theta} \end{equation} Where
2009 Dec 01
0
Canberra distance
Hi, I am using R 2.9.0. It seems the documentation for the calculation of Canberra distance using stats::dist is ambiguous. Does anyone have the original definition given in the Lance & Williams paper from Aust. Comput. J. 1, 15-20, 1967? When there are zeros at certain position in both vectors, they are not omitted as documented in the function (see below). Instead, Canberra distance is
2017 Dec 04
2
ggtern and bquote...
>>>>> peter dalgaard <pdalgd at gmail.com> >>>>> on Mon, 4 Dec 2017 14:55:19 +0100 writes: >> On 4 Dec 2017, at 11:58 , Levent TERLEMEZ via R-help >> <r-help at r-project.org> wrote: >> >> Dear Users, >> >> What is the proper way to write symbol, superscript, >> subscript in
1999 Jul 07
2
superscript -,+?
In Version 0.64.1 (May 8, 1999), Solaris 2.5.1, expression(theta^{-}) and expression(theta^{+}) (and the equivalent subscripts) give syntax errors. (Superscript or subscripts of numbers, letters, or "+1" or "-1" all work.) Anyone have a workaround or a patch? Or should I just use psfrag as god intended? Ben Benjamin Bolker Dep't
1999 Jul 07
2
superscript -,+?
In Version 0.64.1 (May 8, 1999), Solaris 2.5.1, expression(theta^{-}) and expression(theta^{+}) (and the equivalent subscripts) give syntax errors. (Superscript or subscripts of numbers, letters, or "+1" or "-1" all work.) Anyone have a workaround or a patch? Or should I just use psfrag as god intended? Ben Benjamin Bolker Dep't
2012 Apr 26
0
Problem with constrOptim when hitting boundary
Hello, I am using constrOptim to maximize a likelihood function (the values of my parameter vector must be between zero and one and must sum up to <=1). I am getting the error 'initial value in 'vmmin' is not finite'. I've tracked it down to a problem in the function 'R' defined within the constrOptim function. It is performing a check on my values, and its not
2009 Mar 27
1
LME as part of meta-analysis
Hi, I'm having a problem using LME and hopefully I can get some help. Here is what I'm doing: I have a model like this: yi = alpha + theta * xi + beta * zi + error, errors are normally distributed mean 0, var sigma^2 xi and zi are generated from normal distributions within a specified range. True values of alpha, theta, beta and sigma^2 are chosen with a specific mean and variane
2004 Feb 03
1
Error in f(x, ...) : subscript out of bounds
R-Listers: I am doing a quasi-maximum likelihood estimation and I get a "subscript out of bound" error message, Typically I would think this means that a subscript used in the function is literally out of bounds however I don't think this is the case. All I change in the code is a constant, that is hard-wired in (not data dependent and not parameter dependent), furthermore,
2010 May 10
1
Supercripting text
Dear R users, I recently developed a plotting function in R and introduced it to my coworkers. The function is designed to make plotting easier and more efficient, which will in turn be more cost-effective for the company. The reviews for the function have been positive thus far, except for one issue -- addition of superscripts to the title. We need superscipts in the titles sometimes to
2005 Feb 24
3
string concatenation operator
Why doesn't R have one, like "." in Perl or juxtaposition in awk? It does not seem impossible to introduce one, if that would be reasonable. It would seem to involve adding a table entry to main/names.c for the binary operator and a corresponding internal function, say do_dot(). This cannot be simply do_paste(), since the implied separator is "". So, do_dot() might be
2004 Apr 18
2
lm with data=(means,sds,ns)
Hi Folks, I am dealing with data which have been presented as at each x_i, mean m_i of the y-values at x_i, sd s_i of the y-values at x_i number n_i of the y-values at x_i and I want to linearly regress y on x. There does not seem to be an option to 'lm' which can deal with such data directly, though the regression problem could be algebraically