Thank you, all solutions work!
On Fri, Aug 28, 2020 at 9:02 AM Deepayan Sarkar
wrote:
>
> On Thu, Aug 27, 2020 at 5:46 PM Luigi Marongiu
> wrote:
> >
> > Hello,
> > I have a dataframe as follows:
> > ```
> > x = c("0 pmol", "10 pmol", "100 pmol", "1000 pmol")
> > y = c(0.9306, 1.8906, 2.2396, 2
On Thu, Aug 27, 2020 at 5:46 PM Luigi Marongiu wrote:
>
> Hello,
> I have a dataframe as follows:
> ```
> x = c("0 pmol", "10 pmol", "100 pmol", "1000 pmol")
> y = c(0.9306, 1.8906, 2.2396, 2.7917)
> df = data.frame(x, y)
>
> > str(df)
> 'data.frame': 4 obs. of 2 variables:
> $ x: chr "0 pmol"
Hi Luigi,
Maybe just:
plot(as.numeric(factor(x,levels=x)),y,xaxt="n",
main="Concentration by effect",
xlab="Concentration",ylab="Effect")
axis(1,at=1:4,labels=x)
Jim
On Thu, Aug 27, 2020 at 10:16 PM Luigi Marongiu
wrote:
>
> Hello,
> I have a dataframe as follows:
> ```
> x = c("0 pmol", "10
Hello,
The plots that you say give bars (or my equivalent version below) don't
give bars, what they give are boxplots with just one value and the
median Q1 and Q3 are all equal.
plot(y ~ factor(x), df, pch = 16) # boxplot
Is the following what you are looking for?
plot(y ~ as.integer(fac
f$y)
>
> gives you points. You need to set labels to x axis though.
>
> Cheers
> Petr
>
> > -Original Message-
> > From: R-help On Behalf Of Luigi Marongiu
> > Sent: Thursday, August 27, 2020 2:16 PM
> > To: r-help
> > Subject: [R
-help On Behalf Of Luigi Marongiu
> Sent: Thursday, August 27, 2020 2:16 PM
> To: r-help
> Subject: [R] plot factors with dots in R
>
> Hello,
> I have a dataframe as follows:
> ```
> x = c("0 pmol", "10 pmol", "100 pmol", "1000 pmol")
&
Hello,
I have a dataframe as follows:
```
x = c("0 pmol", "10 pmol", "100 pmol", "1000 pmol")
y = c(0.9306, 1.8906, 2.2396, 2.7917)
df = data.frame(x, y)
> str(df)
'data.frame': 4 obs. of 2 variables:
$ x: chr "0 pmol" "10 pmol" "100 pmol" "1000 pmol"
$ y: num 0.931 1.891 2.24 2.792
```
I wou
7 matches
Mail list logo