+ Reply to Thread
Results 1 to 2 of 2

Thread: geom_boxplot

  1. #1
    Super Moderator
    Points: 32,372, Level: 100
    Level completed: 0%, Points required for next Level: 0
    bugman's Avatar
    Posts
    2,255
    Thanks
    290
    Thanked 324 Times in 265 Posts

    geom_boxplot




    Folks, I am seriously getting annoyed today.

    I am plotting calcium using geom_boxplot. The x-axis is as series of sites and looking at RC1, there is something seriously messed up with site RC1.



    I have tried setting varwidth to FALSE in geom_boxplot, but that doesn't work. All I want are boxplots with even widths.

    Any ideas?

    Code: 
    f1 <- ggplot(cvo, aes(x = cvo$Site_rec, y = Calcium..mg.L.)) + geom_boxplot(aes(fill=factor(waterway)),varwidth = FALSE) + xlab("")
    
    f1a <-last_plot() + scale_fill_manual(values=c("#486b7a","#738d9d","#c4ccc6","#a5b6b5","#617c7c"), guide = FALSE) +
            ylab("calcium (mg/L)")
    Attached Images
    The earth is round: P<0.05

  2. #2
    Super Moderator
    Points: 32,372, Level: 100
    Level completed: 0%, Points required for next Level: 0
    bugman's Avatar
    Posts
    2,255
    Thanks
    290
    Thanked 324 Times in 265 Posts

    Re: geom_boxplot


    Solved. I'm and idiot.
    The earth is round: P<0.05

+ Reply to 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