Sigh. Don't do this. Setup your data frame with all the data you want to plot
and give it to one geom. Use group columns such as factors (e.g. color, size,
linetype, etc) to distinguish them.
Using multiple geoms with different mappings is usually a recipe for
disappointment. It also fails to c
Dear all,
we are happy to announce that the package ``superb`` is now available on CRAN.
https://CRAN.R-project.org/package=superb
``superb`` (Summary statistics Plots with adjusted Error Bars) is a package
that produces
plots of summary statistics with adjusted error bars. These bars are ad
>
> I don't know where it says this in the docs, but generally speaking
> ggplot2 graphs don't evaluate everything until you print them. So I'd
> expect p3's two geom_path components to be identical, even though you
> changed idx.
>
> I think you can force evaluation before printing (using ggplot_
On 24/04/2021 5:17 p.m., Martin Møller Skarbiniks Pedersen wrote:
Hi,
Any ideas why I don't get the same graph out of p1 and p3?
I have also posted it in the rstudio community without luck.
https://community.rstudio.com/t/ggplot2-geom-path-in-a-loop/102716/2
library(ggplot2)
df <- data.f
On Fri, 23 Apr 2021 at 20:51, Chris Evans wrote:
>
> I may be quite wrong but isn't the for loop in the second example simply
overwriting/replacing the first p2 with the second whereas the p1 version
is adding the paths to p1.
>
> (If you see what I mean, I don't think I have expressed that very w
Hi,
Any ideas why I don't get the same graph out of p1 and p3?
I have also posted it in the rstudio community without luck.
https://community.rstudio.com/t/ggplot2-geom-path-in-a-loop/102716/2
library(ggplot2)
df <- data.frame(x = c(0,25,0,-25,0), y = c(25,0,-25,0,25))
p1 <- ggplot()
p1 <- p
6 matches
Mail list logo