Displaying 20 results from an estimated 568 matches for "plotmath".
2002 Feb 14
1
apropos("plotmath") curiousity
?plotmath produces the helpscreen for plotmath.
Why does apropos("plotmath") return only character(0)?
> apropos("plotmath")
character(0)
>
> version
_
platform i386-pc-mingw32
arch x86
os Win32
system x86, Win32...
2004 Nov 18
1
Declaration of RuleThickness() in src/main/plotmath.c (PR#7380)
Full_Name: Wolfgang Huber
Version: R-2.0.1
OS: HP-UX B.11.23 ia64
Submission from: (NULL) (81.104.215.6)
Hi,
I hope I am not missing something basic... I am using a somewhat exotic compiler
and OS, but if I understand what I am seeing the problem is more general:
In src/main/plotmath.c, the following function is defined
/* Thickness of rules */
static double RuleThickness()
{
return 0.015;
}
but later it is called in expressions like
RuleThickness(gc, dd)
This leads to a compiler error:
cc +DD64 -I../../src/extra/zlib -I../../src/extra/bzip2 -I../../src/extra/pcre
-...
2003 Aug 07
2
plotmath under windows (PR#3672)
...ssion from: (NULL) (202.36.29.1)
This alleged bug is Windows specific and occurs when using Windows metafile
plots.
The problem does not occur in a Linux version.
It does not occur in the pt rintout when a graphic is saved to a postscript file
under Windows.
The problem came to light when using plotmath to label a plot with latitudes
containing degree symbols.
If expression(40 * degree) is used it is written on the default line for
labels.
If expression(paste(40 * degree, " S") is used it displced closer to the axis.
Pasting any character (except "") has this effect.
The fo...
2012 May 12
2
Plotmath bug or my misunderstanding?
This is a followup to a recent post on using atop() to obtain
multiline expressions.
My reading of the plotmath docs makes it clear that issuing (in base
graphics) the specification
par(cex = 2)
doubles symbols and regular text in subsequent plotmath expressions.
However, it is unclear to me what specifying cex _within_ the
annotation function using plotmath should do, and the following seems
to want to ha...
2011 Jan 20
4
puzzled with plotmath II
sorry, I forgot my sessionInfo: please see below.
-------- Original Message --------
Subject: puzzled with plotmath
Date: Thu, 20 Jan 2011 12:48:18 +0100
From: Claudia Beleites <cbeleites at units.it>
To: R Help <r-help at r-project.org>
Dear all,
I'm puzzled with matrix indices in plotmath.
I'm plotting matrix elements: Z [i, i], and I'd like to put that as label. I'll
describe wh...
2008 Apr 02
1
Trouble combining plotmath, bquote, expressions
I'm using R-2.6.2 on Fedora Linux 9.
I've been experimenting with plotmath.
I wish it were easier to combine expressions in plotmath with values
from the R program itself. There are two parameters in the following
example, the mean "mymean" and standard deviation "mystd". I am able
to use bquote to write elements into the graph title like
mu = myme...
2008 Dec 31
3
Plotmath with values?
I hope to use the plotmath facility to print titles that mix
math and values of R variables.
The help for "plotmath" has an example, which after repeated
reading, I find baffling. Likewise, I have read the help file
for "substitute" (wqhich seems to be needed) without ever
understanding what it does, oth...
2011 Dec 06
1
Graphics device hook to manipulate plotmath
Is there a hook that allows a graphics device to apply transformations
to plotmath expressions *before* they are rendered? If there isn't
one yet, would it be feasible to add one?
The motivation for this hook is graphic devices that feed into
something that already has support for math layout, such as the
tikzDevice package (which has TeX downstream). Given
text(x, y,...
2006 May 06
1
Weird blank spacing in plot title when using \n and plotmath
Dear R-helpers,
I have been using \n in my plot titles to split long titles into two lines. I recently tried combining \n and plotmath which still gives me two lines for the title but also a weird blank spacing. A simple example is as follows:
plot(1:10, main=expression(paste("Exposure\nTemp (", degree*F, ")")))
Is there something I'm missing to close the spacing. I have searched the R-help archives to...
2013 Jul 01
1
Male and female signs as subscript in plot
Hello,
I'd like to add labels to my plot that include a male or female symbol as
subscript.
I'm working in Windows Vista and R 3.0.0.
I am able to add the male symbol to the plot as regular text (NOT as
subscript), e.g. with:
mtext("Male\u2642")
This displays the word "Male" followed by the male symbol on the plot.
But "\u2642" does not work when I try to
2004 Apr 14
1
ltext, plotmath, and substitute
I am interested to use plotmath functions within a panel function but am having
some problems getting the code right. Within each panel I am plotting the data,
fitting a regression line, and would like to print the regression equation.
Here is a trivial example of what I'd like to do:
# generate simple data
tmp.df <-...
2000 Sep 12
1
Variable value in expression (plotmath)
Hello,
I have a problem with the plotmath facility and haven't found any solution
in the FAQ and Online-Help.
I am trying to incorporate the value of a variable in an expression for an
axis with plotmath.
Considering having
> gamma <- 10
I'd like to have a plot with
> plot( .... , xlab=expression(gamma==10))
but depe...
2007 Jun 05
2
Latex \ell symbol in plotmath
Is it possible to use the '\ell' (i.e. the log likelihood) in plots?
I've been browsing the plotmath documentation unsucesfully.
Cheers,
Mario dos Reis
mdosrei at nimr.mrc.ac.uk
+44 (0)20 8816 2300
Division of Mathematical Biology
National Institute for Medical Research
The Ridgeway
Mill Hill
London, NW7 1AA, UK
2010 Jan 29
1
Plotmath: suprscript on scalable delimiter?
...limiter?
I want to put 'b' as the power of the expression in the following plot:
t <- 1:25
K <- 0.2
y <- ((1-exp(-K*t))/(1-exp(-K*t)*exp(K)))^3
plot(t,y,"l",main="K=0.2, b=3")
text(15,5,expression(bgroup("(",frac(1-e^-Kt,1-e^-Kt*e^K),")")))
Plotmath examples in demo(plotmath) do not include this.
I've tried a few things to no avail and I did an RSiteSearch("superscript delimiter") with zero results.
Thx
Rub?n
____________________________________________________________________________________
Dr. Rub?n Roa-Ureta
AZTI - Tecnal...
2011 Jan 20
1
plotmath indices: suggested addition to help file
Dear all,
I just stumbled over the fact that subsetting by square bracket will only output
the first given index. I guess the rest is thrown away by the CADDR in RenderSub
(plotmath.c l. 1399).
Maybe changing this could be considered as "low-priority desired" (would be nice
if the output works for ?
However, I suggest to announce the fact that only the first parameter is printed
in plotmath.Rd.
E.g. in the table l. 72
\code{x[i]} \tab x subscript i; escape furt...
2018 May 21
3
strange behavior of plotmath
hi there,
I find the following codes produce strange output.
plot(1:10, xlab = expression(NO[3]^-~(mg/L)))
you will notice that the unit, mg/L is in superscript format.
That means that "~" is not for space.
However, the help page of plotmath does not mention this behavior.
Best,
Jinsong
[[alternative HTML version deleted]]
2024 Mar 11
1
evince not showing "greek" and "math" in *.pdf plots
...t embedding the fonts is probably more cross-
platform/viewer friendly:
You can embed the fonts if you have Ghostscript installed (I think it
comes with Fedora already(?) if not then:?
sudo dnf install ghostscript
)
You can then use the embedFonts() function in R:
(pdfil <- paste0("plotmath-example_R",
with(R.version, paste0(major, sub("[.]", "", minor))),
".pdf"))
pdf(pdfil)
example(plotmath); mtext(R.version.string)
dev.off()
# Use embedFonts to embed the fonts in the PDF
embedFonts(file = pdfil, outfile = paste0("embedded-e...
2007 Nov 15
2
Using plotmath expressions in lattice key text
Folks:
delta <- 1:5
I would like to put 5 separate lines of text of the form "10 %+-% delta[i]"
into a lattice key legend, where ""%+-%" is the plotmath plus/minus symbol
and delta[i] is the ith value of delta.
The construct:
lapply(delta,function(d)bquote(10%+-%.(d)))
appears to produce a list of expressions of the correct form, and, indeed,
if I assign the above to (a list!) test,
plot(0:1,0:1)
text(.5,.5,test[[1]])
produces the correctly fo...
2003 Feb 19
2
plotmath
There's something (probably a lot) missing in my understanding of
plotmath. The LaTeX code for what I'm trying to produce is
\log(-\log(\hat R))
My (probably hopeless) attempt at it uses nested group()s:
expression(plain(log) * group("(", -plain(log)*group("(", \hat(R), ")"),
")"))
Can anyone do it right for me, please?
Tha...
2008 Apr 08
2
plotmath "overstrikes" in output on a Linux system
I've been testing plotmath. But I'm getting some funny output one one
computer. The problem is that characters are 'jumbled' and overstrike
when symbols are introduced.
Sample code:
mu <- 440.0
sigma <- 12.5
myx <- seq( mu - 4*sigma, mu+ 4*sigma, length.out=500)
myDensity <- dnorm(myx,mean=mu,sd=s...