search for: fig1

Displaying 13 results from an estimated 13 matches for "fig1".

Did you mean: fig
2013 Jan 28
5
Adding 95% contours around scatterplot points with ggplot2
...,0.6,length.out=30)) y<-c(0.55,x[1:29]+0.2*rnorm(29,0.4,0.3),x[31:60]*rnorm(30,0.3,0.1),x[61:90]*rnorm(30,0.4,0.25)) data<-data.frame(level=c(rep(1, 30),rep(2,30), rep(3,30)), x=x,y=y) find_hull <- function(data) data[chull(data$x, data$y), ] hulls <- ddply(data, .(level), find_hull) fig1 <- ggplot(data=data, aes(x, y, colour=(factor(level)), fill=level))+geom_point() fig1 <- fig1 + geom_polygon(data=hulls, alpha=.2) fig1 [[alternative HTML version deleted]]
2017 Jun 18
1
About error bars on barplots
...ear A B C Amin Amax Bmin Bmax Cmin Cmax 2009 40 45 15 30 61 23 56 14 17 2010 36 41 23 26 54 22 51 22 24 I use the code below: DF.refm = melt(subset(DF[,c(1:4)]),id.vars='year',variable_name='Legend') fig1 = ggplot(data=DF.refm, aes(x=year,y=value,fill=Legend))+ geom_bar(stat='identity',size=.5)+ theme_bw()+ xlab('Year')+ ylab('Percent (%)') print(fig1) But I don't know how to change it a little bit. For example, how to add the error bars on the plot, as is shown in the...
2017 Aug 25
1
about multi-optimal points
...ir correlations, but I want v1 and v3 to be as close as 1, v2 to be as close as 0. Thanks very much. DF ID v1 v2 v3 1 0.8 0.1 0.7 2 0.85 0.3 0.6 3 0.9 0.21 0.7 4 0.95 0.22 0.8 5 0.9 0.3 0.7 6 0.8 0.4 0.76 7 0.9 0.3 0.77 ... fig1 = ggplot(data=DF, aes(x=v1,y=v2))+ geom_point()+ theme_bw()+ xlab('Variable 1')+ ylab('Variable 2') print(fig1) fig2 = ggplot(data=DF, aes(x=v1,y=v3)+ geom_point()+ theme_bw()+ xlab('Variable 1')+ ylab('Variable 3') print(fig2) [[alternative HTML version deleted]]
2017 Jun 18
1
[FORGED] About error bars on barplots
...Cmin Cmax > 2009 40 45 15 30 61 23 56 14 17 > 2010 36 41 23 26 54 22 51 22 24 > > I use the code below: > > DF.refm = melt(subset(DF[,c(1:4)]),id.vars='year',variable_name='Legend') > > fig1 = ggplot(data=DF.refm, aes(x=year,y=value,fill=Legend))+ > geom_bar(stat='identity',size=.5)+ theme_bw()+ xlab('Year')+ > ylab('Percent (%)') > print(fig1) > > But I don't know how to change it a little bit. For example, how to add the > error bars...
2017 Aug 26
1
about multi-optimal points
...gt; close as 0. Thanks very much. > > DF > > ID v1 v2 v3 > 1 0.8 0.1 0.7 > 2 0.85 0.3 0.6 > 3 0.9 0.21 0.7 > 4 0.95 0.22 0.8 > 5 0.9 0.3 0.7 > 6 0.8 0.4 0.76 > 7 0.9 0.3 0.77 > ... > > fig1 = ggplot(data=DF, aes(x=v1,y=v2))+ geom_point()+ theme_bw()+ > xlab('Variable 1')+ ylab('Variable 2') > print(fig1) > > fig2 = ggplot(data=DF, aes(x=v1,y=v3)+ geom_point()+ theme_bw()+ > xlab('Variable 1')+ ylab('Variable 3') > print(fig2) > >...
2000 Feb 14
2
par(fig) problem
hello R-users, I'd like to plot four graphics on the same page but with different sizes. I've tried to use : par(fig=c(0,0.5,0,0.6)) plot(fig1) par(fig=c(0.5,1,0,0.6)) plot(fig2) etc... but when a figure is plotted, it erase the previous. I've tried to pass 'new=T' to plot function but it's not possible. What can I do ? is it a bug ? I've already reported this a 2 or 3 month ago but I can't find out the answers I...
2011 May 06
1
Sweave: no eps fig
Hi everyone, I''m using R, Latex and Sweave for some years now, but today it confuses me alot: Running Sweave produces only figures in .pdf format, no .eps figures. The header looks like this: <<echo=TRUE, fig=TRUE, label=Fig1>>= There was no error message. Does anybody have an idea? Any changes in the Sweave-package? Or a missing driver or something like that? I recently switched to another OS (Fedora RedHat) - might that be the reason? Grateful for any suggestions, Lena --
2000 Feb 14
0
summary : par(fig)
...ion doesn't match my needs. E. Paradis and P. Dalgaard made me discover a new (for me!) function : layout() which may do the job (I'm exploring the possibilities). But I finally chose the P. Dalgaard' s solution of setting par(new=T) between each plot say: par(fig=c(0,0.5,0,0.6)) plot(fig1) par(fig=c(0.5,1,0,0.6),new=T) plot(fig2) etc. thanks very much, Mathieu ---------------------------------------------------------------------- Mathieu Ros - 13 rue b?vi?re - 38000 GRENOBLE - 04 76 491 370 http://mathieu.ros.free.fr/ DESS ing?nierie math?matique (biostatistiques)...
2006 Jun 09
1
Saving dns2.plot as a jpg image
Hello, I am using R 2.2.1 with sn 0.4.0 and am trying to save a dns2.plot as a jpg file. Here is the latest version of the code I have tried: x <- seq(0,200,length=200) y <- seq(0, 35, length=200) jpeg(filename = "C:/fig1.jpg", width = 5, height = 4,pointsize = 12, quality = 100, bg = "white", res = NA) par(mfrow=c(1,2),plt=c(.15,.99,.15,.95),mgp=c(1.5,1,0),tcl=-.25,cex.axis=.8) dsn2.plot (x,y,xi=c(29,6),Omega=matrix(c(2580,458,458,84),2),alpha=c(5482940,-2120750)) dst2.plot(x,y, xi=c(29,6),Omega=matr...
2017 Aug 26
1
about multi-optimal points
...gt;> >> ID v1 v2 v3 >> 1 0.8 0.1 0.7 >> 2 0.85 0.3 0.6 >> 3 0.9 0.21 0.7 >> 4 0.95 0.22 0.8 >> 5 0.9 0.3 0.7 >> 6 0.8 0.4 0.76 >> 7 0.9 0.3 0.77 >> ... >> >> fig1 = ggplot(data=DF, aes(x=v1,y=v2))+ geom_point()+ theme_bw()+ >> xlab('Variable 1')+ ylab('Variable 2') >> print(fig1) >> >> fig2 = ggplot(data=DF, aes(x=v1,y=v3)+ geom_point()+ theme_bw()+ >> xlab('Variable 1')+ ylab('Variable 3') >&g...
2005 Sep 16
1
setkeys and Sweave
Hi there: Using \setkeys{Gin}{width=1.0\textwidth} \setkeys{Gin}{height=10cm} \setkeys{Gin}{height=0.8\textwidth} all seem to work under R-2.1.1 under sparc, solaris2.9, but \setkeys{Gin}{scale=0.3} \setkeys{Gin}{angle=90} do not work. I have not been able to find relevant information, googling on setkeys proved confusing, at best.
2011 Aug 08
0
Odp: Fw: R function for Gage R&R
...)[2] names(result)<-meno[1:velik] suma<-summary(fit) kateg<-trunc(smodch[1]/smodch[6]*1.41)+1 if (plotit) { par(mfrow=c(3,2)) posice<-volvzor*1:volop mat<-aggregate(vysledek,list(vzorek,operator),mean,na.rm=T) mat1<-aggregate(vysledek,list(vzorek,operator),sd,na.rm=T) #fig1 hmdm<-c(mean(mat$x)+(mean(mat1$x)/.9)/sqrt(opak)*3, mean(mat$x)-(mean(mat1$x)/.9)/sqrt(opak)*3) plot(mat$x,type="b",ylab="Prumery") abline(h=mean(mat$x),col=3) abline(h=hmdm,col=2) abline(v=posice+.5,col="grey",lwd=2...
2008 Oct 11
9
Sweave-LaTEX question
Hi: I am working on a publication and I have heard about LaTEX but I haven''t actually tried to learn about it until today. I''ve found a few examples but I can''t actually make them work properly. I have a couple of questions: Does LATEX have to be installed on your computer? How does the xtable package and Sweave work together? How can I make the code below create a table