Re: [R] Plotting Confidence Intervals into a density plot

2016-12-02 Thread Elysa Mitova
nt width around it: > > > > y_values<-runif(14) > > plot(seq(2.44,2.57,by=0.01),y_values,ylim=c(-2,3)) > > dispersion(seq(2.44,2.57,by=0.01),y_values,ulim=rep(0.5,14), > > type="l",interval=TRUE,col="lightgray") > > lines(seq(2.44,2.57

Re: [R] Plotting Confidence Intervals into a density plot

2016-12-02 Thread Elysa Mitova
plotrix) > dispersion(smu_data$x,smu_data$y,mad_data,type="l",interval=TRUE, > fill="lightgray") > lines(smu_data,lwd=2) > points(1:100,data) > > Jim > > > On Fri, Dec 2, 2016 at 7:18 PM, Elysa Mitova <elysa.mit...@gmail.com> > wrote: > > Hi,

Re: [R] Plotting Confidence Intervals into a density plot

2016-12-02 Thread Elysa Mitova
ow now the lines the shaded areas sporadically everywhere around my density plot? I just want a polygon spreading from 2.44 to 2.57 along the x-axis. Any tipps? On Fri, Dec 2, 2016 at 1:24 AM, David Winsemius <dwinsem...@comcast.net> wrote: > > > On Dec 1, 2016, at 12:10 PM, Elysa Mit

[R] Plotting Confidence Intervals into a density plot

2016-12-01 Thread Elysa Mitova
Hi, I am desperately looking for a way to plot confidence intervals into a density plot of only one variable (not a scatter plot etc.) Have you any advice how to do this? I've only found manual ways to do with "abline", but this is a rather bothersome method and only works with ggplot (and not

[R] Histogram using Sturges' Bining Errors

2016-10-02 Thread Elysa Mitova
Histogram using Sturges' bining Hello, I am trying to create a histogram using Sturges' bining rule, yet I keep getting 2 errors, which probably have to do with the variable I am using. Here is my process and the errors, what would you suggest? k <- ggplot (world, aes (x=polstab)) wid <-