[datatable-help] Boxplot of mean, sd, max, min without raw data

dangerousfrizbee dangerousfrizbee at gmail.com
Wed Apr 19 08:18:22 CEST 2017


thank you so much!! works like a charm and I would never have figured it
out on my own

On 18 April 2017 at 16:46, affableambler [via R] <
ml-node+s789695n4732696h36 at n4.nabble.com> wrote:

> Hi Susan,
>
> This will require reshaping the data:
>
> data<-read.table('E:\\Libraries\\Documents\\WCM4.txt',sep='\t',header=T,stringsAsFactors
> = F)
>
> library(reshape2)
>
> #Melt the data into three columns with 70 rows:
> melted_data<-melt(data,id.vars = 1, measure.vars = 2:6)
>
> #Plot using ggplot2
> library(ggplot2)
> plot<- ggplot(data = melted_data, aes(x=x, y=value))
> plot <- plot + stat_boxplot(geom ='errorbar',aes(group=x))
> plot <- plot + geom_boxplot(aes(group=x))
> plot <- plot + scale_x_continuous(breaks = 1:14, labels = 1:14)
>
> I also noticed that in rows 2 and 14, the "upper" is greater than "ymax."
>  Maybe the data was entered incorrectly?
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://r.789695.n4.nabble.com/Boxplot-of-mean-sd-max-min-without-raw-data-
> tp4730939p4732696.html
> To unsubscribe from Boxplot of mean, sd, max, min without raw data, click
> here
> <http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4730939&code=ZGFuZ2Vyb3VzZnJpemJlZUBnbWFpbC5jb218NDczMDkzOXwyNDk3ODcwNTY=>
> .
> NAML
> <http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Susan M Miller

Postdoctoral Fellow
FitzPatrick Institute of African Ornithology
DST-NRF Centre of Excellence
University of Cape Town
Rondebosch 7701
South Africa




--
View this message in context: http://r.789695.n4.nabble.com/Boxplot-of-mean-sd-max-min-without-raw-data-tp4730939p4732735.html
Sent from the datatable-help mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20170418/6efe6aa6/attachment.html>


More information about the datatable-help mailing list