I want to change the numbers in scale Y to c(0,-2.5) from (0,-10) only.
and I want to change the color green to yellow and blue to green in the
boxplot.
Thank you
On Fri, Aug 21, 2015 at 6:28 PM, John Kane [via R] <
ml-node+s789695n4711353h9 at n4.nabble.com> wrote:
> Would this help on colour?
>
>
http://stackoverflow.com/questions/8320462/ggplot2-how-to-adjust-fill-colour-in-a-boxplot-and-change-legend-text
>
> You don't say what you want to with the numbers in scale (what scale?)
> You might want to try something like ?scale_manual and then do some
> googling.
>
> Note almost all the code you provided is redundent for the problem. We
> probably should have the data however . See ?dput or read ttp://
>
stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
> and/or http://adv-r.had.co.nz/Reproducibility.html for some hints on how
> to frame the question and supply data.
>
>
>
> John Kane
> Kingston ON Canada
>
>
> > -----Original Message-----
> > From: [hidden email]
> <http:///user/SendEmail.jtp?type=node&node=4711353&i=0>
> > Sent: Fri, 21 Aug 2015 14:10:23 +0300
> > To: [hidden email]
> <http:///user/SendEmail.jtp?type=node&node=4711353&i=1>
> > Subject: [R] fill color in boxplot and change number in scale
> >
> > hello,
> > I want to change the line color and/or fill of each boxplot and
change
> > number in scale
> > what I need to do?
> >
> >
> > ylim<-c(-3,0.5)
> > data.for.plot<-data.frame(accelaration=data_2$lag1min_accelaration,
> > lag=1,
> > alert='red')
> > data.for.plot<-rbind(data.for.plot,
> > data.frame(accelaration=data_2$min_accelaration,
> > lag=0,
> > alert='red'))
> >
> > data.for.plot<-rbind(data.for.plot,
> >
> > data.frame(accelaration=data_1$lag1min_accelaration,
> > lag=1,
> > alert='yellow'))
> > data.for.plot<-rbind(data.for.plot,
> > data.frame(accelaration=data_1$min_accelaration,
> > lag=0,
> > alert='yellow'))
> >
> > data.for.plot<-rbind(data.for.plot,
> > data.frame(accelaration=data_0$lag1min_accelaration,
> > lag=1,
> > alert='no alert'))
> > data.for.plot<-rbind(data.for.plot,
> > data.frame(accelaration=data_0$min_accelaration,
> > lag=0,
> > alert='no alert'))
> > library('ggplot2')
> > ggplot(data.for.plot,aes(fill=factor(alert),
> > y=accelaration,x=factor(lag)))+
> > geom_boxplot()
> > ______________________________________________
> > [hidden email]
<http:///user/SendEmail.jtp?type=node&node=4711353&i=2>
> mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
> ____________________________________________________________
> FREE ONLINE PHOTOSHARING - Share your photos online with your friends and
> family!
> Visit http://www.inbox.com/photosharing to find out more!
>
> ______________________________________________
> [hidden email]
<http:///user/SendEmail.jtp?type=node&node=4711353&i=3>
> mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
>
http://r.789695.n4.nabble.com/fill-color-in-boxplot-and-change-number-in-scale-tp4711348p4711353.html
> To start a new topic under R help, email
> ml-node+s789695n789696h42 at n4.nabble.com
> To unsubscribe from R help, click here
>
<http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=789696&code=ZWxhZGxhemFyMjJAZ21haWwuY29tfDc4OTY5NnwtMTc0ODMyNzg0MQ==>
> .
> 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.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>
>
--
View this message in context:
http://r.789695.n4.nabble.com/fill-color-in-boxplot-and-change-number-in-scale-tp4711348p4711364.html
Sent from the R help mailing list archive at Nabble.com.
[[alternative HTML version deleted]]