Displaying 20 results from an estimated 7000 matches similar to: "Plotmath bug or my misunderstanding?"
2003 Aug 07
2
plotmath under windows (PR#3672)
Full_Name: Murray H Smith
Version: 1.7.1
OS: Windows2000
Submission 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
2010 Sep 09
1
scalable < > delimiters in plotmath
Dear list,
I read in ?plotmath that I can use bgroup to draw scalable delimiters
such as [ ] and ( ). The same technique fails with < > however, and I
cannot find a workaround,
grid.text(expression(bgroup("<",atop(x,y),">")))
Error in bgroup("<", atop(x, y), ">") : invalid group delimiter
Regards,
baptiste
sessionInfo()
R version
2010 Sep 09
1
scalable < > delimiters in plotmath
Dear list,
I read in ?plotmath that I can use bgroup to draw scalable delimiters
such as [ ] and ( ). The same technique fails with < > however, and I
cannot find a workaround,
grid.text(expression(bgroup("<",atop(x,y),">")))
Error in bgroup("<", atop(x, y), ">") : invalid group delimiter
Regards,
baptiste
sessionInfo()
R version
2012 May 11
2
text(): combine expression and line break
Hi,
I would like to plot some extra text in my plot.
This should be a two line text including a special character (sigma).
I tried so far a to use expression in combination with paste and "\n"...
but I can't get the line break...
Here what I've done so far:
plot(1,type="n", xaxt='n', yaxt='n', ann=FALSE)
text(1,1,labels=expression(paste(sigma,"\n
2011 Apr 18
4
splom, plotmath: how to add three lines of information with alignment?
Dear expeRts,
I would like to create a scatter plot matrix with splom(). The lower panel should
contain some additional information about the samples shown in the upper panel
plot, see the splom() call below. Now two questions came up:
(1) The lower panels show "tau" and "alpha" on top of each other. How can I plot
*three* expressions on top of each other? I tried several
2006 Jun 09
2
How add degree character in axis?
Hi user R,
I am try to put degree character in axis x, but don't make this. I have
the next code:
plot(mot[,5],
time1,xlim=c(-45,-10),type="l",yaxt="n",ylab="",col=1,lwd=2,xlab="",xaxt="n")
The range of value in axis-x is -45 to -10, this values represents the
longitudes positions in space. I try to put 45?S for real value (-45) in
2011 Mar 01
2
expression help
Hello,
I am trying to write math-type on a plot. Due to space limitations on
the plot, I want 2 short expressions written on top of each other. It
is certainly possible to write them in two separate calls, but that
involves fine-tuning locations and a lot of trial and error (and I'm
trying to write a general purpose function).
Here's where I've gotten to:
2011 Aug 16
3
Text wrap
Hi everyone.
I have a long label that I would like to split. I found that I could use
"strwrap" for simple text. However, this is not working with this label:
str = expression(paste("< 20 ?m phytoplankton ","(cells ? ",mL^-1,")"))
plot(...., ylab = strwrap(str,20),...)
I suspect this is because I'm using "expression" for form my label.
2004 Aug 09
4
Simultaneous subscripts and superscripts
Dear List,
I'd like to add text to a plot where a text symbol has both a
superscript and subscript. For example, the variable S with a
superscript 2 and a subscript t. I have been able to accomplish this
using either
expression( paste(S,atop(scriptstyle(2),scriptstyle(t))) )
or
expression( {S[t]}^2 )
but the spacing isn't quite right (or rather what I'd like) using
either of
2011 Aug 25
1
Combining a greek letter and a newline on the same label
Hi,
I would like to add a two-lines label consisting of:
"Delta word1\n
word2"
(with Delta being the actual greek letter).
However, when I try "expression(paste(Delta,"word1\nword2"))", I obtain the
following display:
"word1\n
Delta word2".
Do you have any idea on how to obtain the desired display?
Thank you for your help!
Sebastien
[[alternative HTML
2013 Oct 10
1
pairs plot
my data are matrix with 3 numeric columns.
would like to have pairs plot
with scatterplots in the upper
with hist at the diag
and with correlation at the lower.
actually default pairs does almost what I want but looks semi awesome.
Especially, i didn't find out how to remove the axes from the lower
part where I do only want to display the numeric values correlations
there and somehow axes
2008 Apr 08
1
plot function / par() settings
Dear all;
I'm trying to create a 2 x 3 plot (something I know like lattice can
do better) using the plot function. However; I'm not sure how to make
the width of the plots to be the same on each column. I guess the
answer maybe obvious but I haven't been able to figure it out. I'll
appreciate any suggestion. Here is the (highly inefficient) code for
the first row:
par(mfrow =
2011 Jul 08
2
Vertical Labels in plot graph - normally working fine but not on this graph
Hello,
I wonder if someone can elaborate on why in the first graph I am able to set
labels vertical to the x-axis but not in the second.
I tried to select the window but it didnt really help.
Many Thanks
Paolo
ExtAvgCWV = rnorm(200)
ExtAvgDemand = rnorm(200)
ExtGasDays = seq(from = as.Date("2010-8-4", "%Y-%m-%d"), along.with =
ExtAvgCWV, by = "days")
2005 Oct 10
2
greek symbols using pch
Hi R-users,
In a plot, can I specify pch to be a greek symbol? (I looked at
show.pch() in the Hmisc package but couldn't see the right symbols in there).
If not, I guess I can get around this using text(x,y,expression()).
cheers!,
Matt.
Dr Matt Fischer
Postdoctoral Fellow - IPILPS
ANSTO - Institute for Nuclear Geophysiology
Building 21A
PMB 1 Menai NSW 2234
Ph: +61 2 9717 9686
Fax:
2018 May 08
0
Adding Year-Month-Day to X axis
abline (v=x_yyyymmdd, lty=3, lwd=1.0, col="blue")
On Tue, May 8, 2018 at 5:23 PM, Gregory Coats <gregcoats at me.com> wrote:
> Since the horizontal axis side=1 is year-month-day, how do I issue an
> abline command to draw dashed vertical lines, as a background grid, within
> the graph?s border? Similar to the abline command I call below, in blue,
> for dashed
2008 Jul 24
1
plot.dendrogram xlim/ylim
list(...),
I would like to zoom in to the leaves of large trees in a dendrogram
plot. The playwith package allows zooming by passing xlim and ylim
arguments to the plot call (Hmisc does this too I think). But
currently stats:::plot.dendrogram does not accept xlim or ylim. So I
would like to enable that. In place of the existing code chunk:
xlim <- c(x1 - 1/2, x2 + 1/2)
ylim <- c(0,
2006 Feb 16
1
R-help - Problem in drawing braplot with a huge value of data
Hello R-experts,
I am facing a strange problem while creating a barplot. I have serise of
data of which the first
on is around 162589 while the remaining data are around 0-150. so when I am
ploting the barplot
with all the data I am getting a single line -> test1.jpg.
But If I remove the 1st value i.e 162589 then I am getting a normal
barplot -> test2.jpg
Can some one help me regarding
2009 Oct 19
1
How do I wrap a long mixed text/math expression in an axis label?
I would like to wrap a y-axis label onto two lines. My label is an expression
containing both text and math symbols. I have looked at plotmath,
strsplit(), strwrap(), deparse(), do.call(), substitute() and bquote().
Based on previous posts, I can get plain text to wrap. However, when I try
these methods on my label, the exact string is returned, rather than
evaluating the math symbols.
My
2018 May 08
1
Adding Year-Month-Day to X axis
I do not see any difference between the x versus y plot drawn in blue, and the y only plot drawn in red. Is the correct?
Greg
y_duration <- c (301.59050, 387.35700, 365.64366, 317.26150, 321.71883, 342.44950, 318.95350, 322.33233, 330.60333, 428.99516, 297.82066, 258.23166, 282.01816, 280.00000)
x_yyyymmdd <-as.Date(c ("2018-04-25", "2018-04-26", "2018-04-27",
2005 Feb 21
4
49 histograms on one page
Hi,
I want to do something like this:
par(mfrow=c(7,7))
for (i in 1:49)
hist(RATDACOM[SUBJNO==i],breaks=0.5+(0:6),
main="",xlab="",ylab="",xaxt="n",yaxt="n")
(Don't think about what RATDACOM and SUBJNO are.)
I get an error
Error in plot.new() : Figure margins too large.
36 histograms with mfrow=c(6,6) work.
But the 36 histograms