[R] Adding Year-Month-Day to X axis

Jim Lemon drj|m|emon @end|ng |rom gm@||@com
Thu May 10 00:24:30 CEST 2018


Hi Jayaganesh,
I'm not sure this will help, but here is a simple example using box.heresy:

y_duration <- c (16.438, 15.321, 12.700, 12.397, 10.795, 9.928, 10.386)
library(plotrix)
box.heresy(1,mean(y_duration),uinner=std.error(y_duration)
 ,ulim=sd(y_duration),intervals=TRUE)
#add the median as a circle symbol
points(1,median(y_duration))

Jim


On Wed, May 9, 2018 at 3:25 PM, Jayaganesh Anbuganapathy
<jai6561 using icloud.com> wrote:
> Helo Greg - I got it with help of your code and I would like to add the
> value into the boxplot chart. How to do that.
>
> y_duration <- c (16.438, 15.321, 12.700, 12.397, 10.795, 9.928, 10.386)
>
>
>
>
> On May 09, 2018, at 10:06 AM, Jayaganesh Anbuganapathy <jai6561 using icloud.com>
> wrote:
>
> Actually I would like to get an output on the below snapshot. I have tried
> various method like points, labels.. but nothing works. Attached is the data
> for your reference.
>
>
>
> On May 09, 2018, at 09:59 AM, Gregory Coats <gregcoats using me.com> wrote:
>
> I do not see any difference between the x versus y plot drawn in blue, and
> the y only plot drawn in red. Is the correct?
> Greg
>
> y_duration <- c (301.59050, 387.35700, 365.64366, 317.26150, 321.71883,
> 342.44950, 318.95350, 322.33233, 330.60333, 428.99516, 297.82066, 258.23166,
> 282.01816, 280.00000)
> x_yyyymmdd <-as.Date(c ("2018-04-25", "2018-04-26", "2018-04-27",
> "2018-04-28", "2018-04-29", "2018-04-30", "2018-05-01", "2018-05-02",
> "2018-05-03", "2018-05-04", "2018-05-05", "2018-05-06", "2018-05-07",
> "2018-05-08)"), format="%Y-%m-%d")
> plot (x_yyyymmdd, y_duration, type="l", xaxt="n", yaxt="n",
> ylim=range(240,480), xlab="", ylab="", col="blue")
> plot ( y_duration, type="l", xaxt="n", yaxt="n", ylim=range(240,480),
> xlab="", ylab="", col="red" )
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org 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.
> ______________________________________________
> R-help using r-project.org 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.




More information about the R-help mailing list