I want to add an outer subtitle to my 2x3-plot, but it's distance to the
lowest plots is very high: 6 lines or more?!
If I choose oma=c(5,0,2,0), it lies out of the plotting region and
disapprears. Obviously I make something wrong here. Help appreciated,
Thomas
x=seq(from=1, to=3.5, length=100)
I want to plot the results of today's elections in Austria in this
typical 180°-piechart (and not 360°).
Unfortunantely pie() has just an argument init.angle and no end.angle.
Perhaps you know a workaround.
Thomas
__
R-help@stat.math.ethz.ch mailing
I upgraded and it still does not work.
I want something like this for 3d-persp() plots:
days=c(2006-01-23,2006-01-24,2006-01-25,2006-01-26,2006-01-27,2006-01-28)
sq=(1:6)^2
plot(x=as.Date(days, format=%Y-%m-%d),y=sq, type=l, main=What I
learn about R, sub=R.version.string)
sq3d=matrix(nrow = 4,
persp(x=1:4,y=1:6,z=sq3d,theta = 30, phi = 30, expand = 0.5, col =
lightblue)
(but y=days)
of course it should be something like
persp(y=as.Date(days, format=%Y-%m-%d),x=1:4,z=sq3d, theta=30,
phi=30, expand=0.5, ticktype=detailed, col=seagreen)
But this does not what I expected (after
I estimate some parameters and I want to print them (pretty) on my plot:
# somehow estimated parameters
z-c(1.543523e+00, 1.23453e+00, 3.454000e+00)
x-seq(-1,1,length=100)
plot(x,z[3]*x^2+z[2]*x+z[3],type=l, main=My nice plot of the
estimated function)
I found it immediately after posting :(
substitute is my friend:
text(0.5,5,substitute(f[Sv] ==k*x^2, list(k=zf[1])))
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
text(-0.9,5,paste(zs[1],' ',expression(x^3))) # should work
this produces a 2x^3 and not 2xsuperscript(3) - just execute it and
you see what I mean. anyway, substitute helps and bquote could shorten
it a bit.
Anywa thanks!
Thomas
__
I want to write some text in a corner of my plot.
Is it possible to get the xlim and ylim of an open window?
Or is there anything similar like
legend(x=bottomright, inset=0.01,legend=...)
for
text(x=1,y=2, test)
Thomas
__
R-help@stat.math.ethz.ch
Thank you all.
par(usr)
is the perfect solution.
It *is* in the help files, but was quite hard to find.
Thomas
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
a) How can I set the recording of all windows()-history forever to
true? I want something like windows(record = TRUE) but not just for
the window that opens then, but for all windows I will open ever.
b) Scrolling up in RGui (windows 2000) to see past commands is nice,
but: Is it possible to type
I color some area grey with polygon() (with a red border) and then I
want to have the dashed red border in the legend as well. How do I
manage it?
And I want to mix (latex) expressions with text in my legend.
Just execute my lines below and you know want I mean. Or pass by at
options(chmhelp=TRUE)
help(package=fCalendar)
does not open teh windows help browser, but
help(CalendarData, package=fCalendar)
does. Why? A bug?
I use R 2.1.1 under Windows2000
Thomas
__
R-help@stat.math.ethz.ch mailing list
I know that (for windows users) there exists an extension for WinEdt for R.
Is there an editor plugin for eclipse as well. Eclipse is free,
cross-plattform, well known, ...
I found nothing on the web, but it seems (to me) to be a good idea (as
there is a LaTeX-plugin for eclipse as well).
Thomas
I have a list of (same type) lists. I want to retrieve the same
entries of all my objects in the outer list.
eg:
a-list(2006-01-23=list(r=5,s=c(7,12,12,11,4)),
2006-01-24=list(r=6,s=c(3,8,8,9,12)))
a[][[s]]
gives NULL, but I am looking for all the s-vectors in order to plot
and compare them (e
I want to plot dates on the y-axis of a persp() plot.
persp(x=1:30,y=days,y=yields)
axis(2, 1:5, LETTERS[1:5])
does not work. On the mailinglist I found old messages, that said,
that text() does not apply (yet) for 3-d plots. And the same question
(
I want to plot dates on the y-axis of a persp() plot.
?persp points you to ?trans3d which is useful to calculate coordinates
for calls to 2D functions such as text().
?trans3d gives this:
No documentation for 'trans3d' in specified packages and libraries:
you could try 'help.search(trans3d)'
I want to write something like (LaTeX style)
b_{norm}=\frac{F\prime(0)}{R\prime(0)}
how do I add the prime (first derivative) to a R-plot? The help of
plotmath just talks about partialdiff. Can you complete this
command?
text( 30,0.05,labels=expression(b[plain(norm)]==frac(F(0),R(0))) )
Thanks,
how do I add the prime (first derivative) to a R-plot?
sorry for the noise, I found it myself:
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/20984.html
I use now (works fine)
plot(1,1,xlab=expression(frac(F'(0),R'(0))),xaxt=n)
Thomas
__
The filled.contour function gives me some strange output. What did I do wrong?
x=seq(0,1,length=10)
y=seq(0,1,length=10)
z=array(rnorm(100),dim=c(10,10))
filled.contour(x,y,z)
lines(0.4,0.8,type=p)
abline(v=0.4,lty=dashed)
the x-cooridnate of the line and the point is 0.4, but it's slightly
I want to plot something (eg a circle) with a fixed ratio of the x and
y axis, or (even better) with a fixed size when I print it. Output
should then be a circle (actually it'll be someting more complicated)
with radius 5cm and not an ellipse.
I'm _sure_ this is not new, but after looking 45min
20 matches
Mail list logo