Re: [R] How to plot both lines and points by group on ggplot2

2023-07-01 Thread Luigi Marongiu
Thank you that is exactly it! The problem was to connect each point of the series 'Conc' with a line. Best regards Luigi On Sat, Jul 1, 2023 at 8:33 PM Chris Evans wrote: > > > On 01/07/2023 19:20, Luigi Marongiu wrote: > > Hello, > > I have a dataframe with measurements stratified by the concent

Re: [R] How to plot both lines and points by group on ggplot2

2023-07-01 Thread Rui Barradas
Às 19:20 de 01/07/2023, Luigi Marongiu escreveu: Hello, I have a dataframe with measurements stratified by the concentration of a certain substance. I would like to plot the points of the measures and connect the points within each series of concentrations. When I launch ggplot2 I get the error `

Re: [R] How to plot both lines and points by group on ggplot2

2023-07-01 Thread Bert Gunter
... and so ignore my previous missive, as you *did* provide data. Sorry for the noise. -- Bert On Sat, Jul 1, 2023 at 11:53 AM Chris Evans via R-help wrote: > > [Whoops, forgot that default reply-to is to the sender.] > > > On 01/07/2023 19:20, Luigi Marongiu wrote: > > Hello, > > I have a data

Re: [R] How to plot both lines and points by group on ggplot2

2023-07-01 Thread Chris Evans via R-help
[Whoops, forgot that default reply-to is to the sender.] On 01/07/2023 19:20, Luigi Marongiu wrote: Hello, I have a dataframe with measurements stratified by the concentration of a certain substance. I would like to plot the points of the measures and connect the points within each series of co

Re: [R] How to plot both lines and points by group on ggplot2

2023-07-01 Thread Bert Gunter
Can your post a few lines of your data frame (e.g. via dput(head(...))) to make it clearer. I found this statement confusing: "... measurements stratified by the concentration of a certain substance. I would like to plot the points of the measures and connect the points within each series of concen

[R] How to plot both lines and points by group on ggplot2

2023-07-01 Thread Luigi Marongiu
Hello, I have a dataframe with measurements stratified by the concentration of a certain substance. I would like to plot the points of the measures and connect the points within each series of concentrations. When I launch ggplot2 I get the error ``` geom_path: Each group consists of only one obser