+ Reply to Thread
Results 1 to 2 of 2

Thread: plotting the effect of treatment on plants

  1. #1
    Points: 82, Level: 1
    Level completed: 64%, Points required for next Level: 18

    Thanked 0 Times in 0 Posts

    Question plotting the effect of treatment on plants


    I have some plant data, which contains several plant groups. Within the plant groups there are different plant sizes (devided in groups). For each plant I noted whether it was infected before and after the treatment:

    data = data.plant

    > str(data.plant)

    $ Group.nr: Factor w/15 levels : "1" , "2" , "3" , "4".....
    $ Plant.nr: Factor w/30 levels :"1" , "2" , "3" , "4".....
    $ Size: Factor w/4 levels : "150", "200" , "250", "300"...
    $ Status: Factor w/2 levels: "Before" "After"
    $ Infection: Factor w/2 levels: "Infected" , "Not.Infected"...

    (See attachment as well)

    Now... I get lost in the structure. Because I am not sure how I have to structure my data in R to get the following data:

    How much % within each plant size was infected before and got better again. Also the % within each plant size that was infected and is still infected after the treatment is interesting...

    I'm also trying to create a graph like in the attachment/example here but I can't seem to make the right grouping... could someone help me...?? Thank you so much!
    Attached Thumbnails Attached Thumbnails Click image for larger version

Name:	Table example.jpg‎
Views:	19
Size:	14.9 KB
ID:	6748   Click image for larger version

Name:	Graph example.jpg‎
Views:	19
Size:	10.3 KB
ID:	6749  

  2. #2
    Points: 72,900, Level: 100
    Level completed: 0%, Points required for next Level: 0
    User with most referrers
    trinker's Avatar
    Buffalo, NY
    Thanked 931 Times in 812 Posts

    Re: plotting the effect of treatment on plants

    You likely haven't gotten a response because this is not reproducible (there is not data to work with). Use sample and rnorm functions to make up data similar to your data.plant
    "If you torture the data long enough it will eventually confess."
    -Ronald Harry Coase -

+ Reply to Thread


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Advertise on Talk Stats