On 10.10.2013 21:40, Sheri wrote:
Hi everyone,
I am hoping someone can help with my attempted use of the expression
function. I have a long series of text and variable to paste together
including a degree symbol. The text is to be placed on my scatter plot
using the mtext function.
Using expres
Thanks very much! bquote() did the trick!
on Thu, Oct 10, 2013 at 6:19 PM, William Dunlap wrote:
>> changetext = expression(paste("Change from ",mini," to ", maxi, ":",
>> diff ,degree,"C",collapse=""))
>>
>> does not evaluate my user defined variables - mini,maxi, and diff -
>> just printing the
> changetext = expression(paste("Change from ",mini," to ", maxi, ":",
> diff ,degree,"C",collapse=""))
>
> does not evaluate my user defined variables - mini,maxi, and diff -
> just printing them out as words
bquote() can do it: put the variables which should be evaluated in .(). E.g.,
mini
On Mar 14, 2012, at 11:53 AM, ilai wrote:
On Wed, Mar 14, 2012 at 8:56 AM, Thomas Hoffmann
wrote:
Hi all,
I still fail to plot an axis title with the following expression:
plot(0,xlab=expression('(SOC [' * kgm^{-2} * '])' * ^{-2}))
the xlab should look like: (SOC [kgm^2])^0.25
with an o
On Wed, Mar 14, 2012 at 8:56 AM, Thomas Hoffmann
wrote:
> Hi all,
>
> I still fail to plot an axis title with the following expression:
>
> plot(0,xlab=expression('(SOC [' * kgm^{-2} * '])' * ^{-2}))
>
> the xlab should look like: (SOC [kgm^2])^0.25
>
> with an out bracket and a superscript.
>
Thanks. Exactly what I wanted.
As usual, I played around with all sorts of things to try and get the
expression right, but never thought of as.name.
David Scott
On 25/01/2011 4:32 a.m., Charles C. Berry wrote:
On Tue, 25 Jan 2011, David Scott wrote:
I have a problem with expressions. I am
On Tue, 25 Jan 2011, David Scott wrote:
I have a problem with expressions. I am trying to create a title where the
parameter of interest is displayed as a Greek character. Which parameter is
being considered is stored in a character variable.
As an example, if I have
param <- "alpha"
param
On Mon, 17 Aug 2009 12:24:28 +0200, deanj2k wrote:
Hello.
I have a vector and within that vector is one expression. When I display
this vector it comes up as
expression(NA_character_, NA_character_, "Null Effect", "Pooled effect",
NA_character_, NA_character_, NA_character_, NA_character
All of it is an expression (see ?expression). Maybe you'd better explain
what exactly you're trying to do or what you mean by standard format and
"usual way" (this part depends very much on what you're used to). You can
manipulate parts of this expression, say, like this:
foo <- expression(NA_char
9 matches
Mail list logo