On Mon, 2 Aug 2021 17:53:34 +0100
Rui Barradas wrote:
> Hello,
>
> I'm glad it helped.
> Here are a couple of ideas for theme.
Thanks Rui. The scope of your knowledge and understanding is simply
amazing!
cheers,
Rolf
--
Honorary Research Fellow
Department of Statistics
University of Au
Hello,
I'm glad it helped.
Here are a couple of ideas for theme.
1) From ?theme:
Theme inheritance
Theme elements inherit properties from other theme elements
hierarchically. For example, axis.title.x.bottom inherits from
axis.title.x which inherits from axis.title, which in turn inherits fro
I would like to tie off this thread (?!?!) by thanking Jeff Newmiller,
Rui Barradas, Avi Gross and Bill Dunlap for their advice and insight.
I have attached the code that I finally put together, on the basis of
the aforementioned advice, in the file ciPlot.txt. I have also
attached the necessary
Thanks to Bill Dunlap and Avi Gross for their clear and helpful answers
to my questions.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
__
R-help@r-project.org mailin
Of Rolf Turner
Sent: Monday, July 19, 2021 7:24 PM
To: r-help@r-project.org
Subject: Re: [R] Plotting confidence intervals with ggplot, in multiple facets.
Thanks to Jeff Newmiller, Rui Barradas and Avi Gross for their extremely
helpful replies. I have got both Jeff's and Rui
ggplot2::labs() interprets expressions as plotmath. E.g.,
data.frame(X=1:10,Y=(1:10)^2) %>% ggplot(aes(X,Y)) + geom_point() +
labs(x = expression(beta), y = expression(beta^2))
-Bill
On Mon, Jul 19, 2021 at 4:24 PM Rolf Turner wrote:
>
>
> Thanks to Jeff Newmiller, Rui Barradas and
Thanks to Jeff Newmiller, Rui Barradas and Avi Gross for their
extremely helpful replies. I have got both Jeff's and Rui's code to
run. I am currently experimenting with Avi's suggestion of producing
multiple plots and then putting them together using plotgrid() or
grid.arrange(). This idea s
error bars being displayed with parts
below zero so showing where zero is graphically can be useful.
-Original Message-
From: R-help On Behalf Of Rolf Turner
Sent: Sunday, July 18, 2021 2:17 AM
To: r-help@r-project.org
Subject: [R] Plotting confidence intervals with ggplot, in multiple f
Hello,
Something like this?
library(ggplot2)
eg <- dget("data/egData.txt")
ggplot(eg, aes(Ndat, estimate)) +
� geom_errorbar(aes(ymin = lower, ymax = upper), width = 20) +
� geom_point(colour = "slateblue", size = 1) +
� geom_hline(yintercept = 0, colour = "red") +
� facet_grid(param ~ .) +
ggplot(dta,aes(x=Ndat,y=estimate, ymin=lower,ymax=upper))+
geom_point() +
geom_errorbar(width=30) +
facet_grid(param~1) +
theme_minimal()
Width parameter seems odd... play with it I suppose.
For facets, you can also use facet_wrap(~param, ncol=1).
ggplot is very much about the data and t
I have need of creating a plot displaying confidence intervals
(for the mean bias in parameter estimates) with one panel or facet
for each of the two parameters in question.
I can do this in base R graphics, but the result is not as
aesthetically pleasing as I would like. I have attached an exa
11 matches
Mail list logo