Thanks for the answer.
Il gio 19 lug 2018, 01:04 Jim Lemon ha scritto:
> Hi Francesca,
> This looks like a fairly simple task. Try this:
>
> fpdf<-read.table(text="PASP SUBJC
> 0 0
> 4 1
> 0 0
> 8 0
> 4 0
> 0 1
> 0 1",
> he
Hi again,
Sorry, forgot this line:
fpdf$PASPpos<-fpdf$PASP > 0
just after reading in the data frame.
Jim
On Thu, Jul 19, 2018 at 9:04 AM, Jim Lemon wrote:
> Hi Francesca,
> This looks like a fairly simple task. Try this:
>
> fpdf<-read.table(text="PASP SUBJC
> 0 0
> 4 1
Hi Francesca,
This looks like a fairly simple task. Try this:
fpdf<-read.table(text="PASP SUBJC
0 0
4 1
0 0
8 0
4 0
0 1
0 1",
header=TRUE)
# get the number of positive PASP results by group
ppos<-by(fpdf$SUBJC,fpdf$PASPpos,su
On Wed, 18 Jul 2018, Francesca wrote:
Dear R help,
I am new to ggplot so I apologize if my question is a bit obvious.
Or perhaps not, as this is the "R-help" mailing list, not the
"Ggplot-help" mailing list. Fortunately for you, what you really need to
learn is R, and then ggplot will be
Hello,
Your request is not entirely clear.
What kind of a graph do you want? A bar graph with a bar of the fraction
of positive levels of PASP per each level of SUBJC?
You need to be more specific.
Also, please post data like this:
# post the output of this command in your next mail
dput(hea
5 matches
Mail list logo