search for: element_blank

Displaying 20 results from an estimated 24 matches for "element_blank".

2013 Nov 01
2
Package(s) for making waffle plot-like figures?
...ength(residuevec))) png(paste(''plot'',i,''.png'',sep='''')) print(ggplot(waffle, aes(x = x, y = y, fill = residue)) + geom_tile(color = "white") + scale_fill_manual("residue",values = col4) + coord_equal() + theme(panel.grid.minor=element_blank(),panel.grid.major=element_blank()) + theme(axis.ticks=element_blank()) + theme(axis.text.x=element_blank(),axis.text.y=element_blank()) + theme(axis.title.x=element_blank(),axis.title.y=element_blank()) ) dev.off()} With my scripts, I could make a waffle plot, but not a *square* 10 X 10 waffle pl...
2018 Mar 19
1
Labelling a fortified GADM map plotted with ggplot and geom_map
...lat, #y axis label = Number, #the value to display size=3)) + #size of the text theme(axis.ticks = element_blank(), #theme of the graph, no axis ticks axis.text = element_blank(), #no axis text panel.background = element_blank(), #blank background panel.border = element_blank())...
2013 Aug 22
0
Close with a ggplot chart but need a little assistance
...39;''') + labs(fill=''Goal'') + theme( plot.title = element_text(lineheight=.8, face="bold"), panel.background = element_rect(fill = "transparent",colour = NA), panel.grid.minor = element_blank(), panel.grid.major = element_blank(), strip.background = element_rect(fill = "transparent",colour = NA), strip.text.y = element_text(face="bold", size=10), plot.background = element_rect(fill = "transparent&quot...
2017 Nov 17
1
How to produce rainfall maps
...white?, size=3, shape=4) + theme_bw() + coord_equal() + scale_fill_gradient(?MAP (mm/yr)?, limits=c(0,2500)) + theme(axis.title.x = element_text(size=16), axis.title.y = element_text(size=16, angle=90), axis.text.x = element_text(size=14), axis.text.y = element_text(size=14), panel.grid.major = element_blank(), panel.grid.minor = element_blank(), legend.position = ?right?, legend.key = element_blank() ) (oo) --oOO--( )--OOo---------------- Stefano Sofia PhD Area Meteorologica e Area nivologica - Centro Funzionale Servizio Protezione Civile - Regione Marche Via del Colle Ameno 5 60126 Torre...
2018 Feb 12
1
plotting the regression coefficients
...r responses and supports. I just faced a different problem. I have the following R codes and work well. p <- ggplot(a, aes(x=Phenotypes, y=Metabolites, size=abs(Beta), colour=factor(sign(Beta)))) + theme(axis.text=element_text(size = 5)) p1<-p+geom_point() p2<-p1+theme(panel.grid.major = element_blank(), panel.grid.minor = element_blank(), panel.border = element_blank(), axis.ticks = element_blank()) p3<-p2+theme(panel.grid.major = element_blank(), panel.grid.minor = element_blank(), panel.background = element_blank(), axis.line = element_line(colour = "bla...
2017 Nov 21
1
How to produce rainfall maps
...() + > coord_equal() + > scale_fill_gradient(?MAP (mm/yr)?, limits=c(0,2500)) + > theme(axis.title.x = element_text(size=16), > axis.title.y = element_text(size=16, angle=90), > axis.text.x = element_text(size=14), > axis.text.y = element_text(size=14), > panel.grid.major = element_blank(), > panel.grid.minor = element_blank(), > legend.position = ?right?, > legend.key = element_blank() > ) > > > > (oo) > --oOO--( )--OOo---------------- > Stefano Sofia PhD > Area Meteorologica e Area nivologica - Centro Funzionale > Servizio Protezione...
2018 Feb 13
1
plotting the regression coefficients
...r responses and supports. I just faced a different problem. I have the following R codes and work well. p <- ggplot(a, aes(x=Phenotypes, y=Metabolites, size=abs(Beta), colour=factor(sign(Beta)))) + theme(axis.text=element_text(size = 5)) p1<-p+geom_point() p2<-p1+theme(panel.grid.major = element_blank(), panel.grid.minor = element_blank(), panel.border = element_blank(), axis.ticks = element_blank()) p3<-p2+theme(panel.grid.major = element_blank(), panel.grid.minor = element_blank(), panel.background = element_blank(), axis.line = element_line(colour = "bla...
2017 Jul 05
1
How can I make the legend in ggplot2 the same height as my plot?
...tried to increase the legend height in ggplot2, but it did not respond at all using the follwoing code. Do you have any suggestions for me? dat<-data.frame(temperature) P1<-ggplot(dat, aes(X, Y)) Scenario1<-P1+geom_point(aes(colour = value), size = 1)+ theme_bw()+ theme(axis.text.x = element_blank(),axis.text.y = element_blank()) Scenario1<-Scenario1+facet_wrap(~variable, ncol=2)+scale_color_gradientn(colours = rainbow(48)) Scenario1+guides(fill = guide_colorbar(bar width = 1.5, barheight = unit(10, "mm"))) Thanks, KG [[alternative HTML version deleted]]
2017 Jun 16
1
point size
You could add size = log10_P to the aes() inside geom_point(). Untested code below. See also http://ggplot2.tidyverse.org/reference/geom_point.html ggplot(mydata, aes(x = X, y = log10_P)) + theme_bw() + theme(panel.border=element_blank(), legend.position="top", axis.text=element_text(size = 8)) + geom_point(aes(color = Traits, size = log10_P)) Jean On Fri, Jun 16, 2017 at 9:33 AM, greg holly <mak.hholly at gmail.com> wrote: > Hi all; > > I am running the following ggplot codes. Runs well. However, I...
2013 Jan 24
1
Insert segment only on particular facets in ggplot
...d.csv("temp data share.csv",header=T, sep=",") p1 <- ggplot(tempobs,aes(x=time,y=data))+geom_point(data=tempobs,aes(x=time,y=data,colour=group1))+facet_wrap(~id,ncol=1)+theme_bw() p1 <- p1 + xlab("Julian Day (2008-2009)")+ylab(expression(Temperature~(degree*C)))+ element_blank()+ theme( legend.position="right", legend.direction="vertical", legend.title = element_blank()) +coord_cartesian(xlim=c(250,550))+coord_cartesian(ylim=c(0,40))+scale_x_continuous(breaks=c(250,300,350,400,450,500,550),labels=c("250","300","350...
2017 Nov 22
1
How to produce rainfall maps
...> scale_fill_gradient(?MAP (mm/yr)?, limits=c(0,2500)) + > > theme(axis.title.x = element_text(size=16), > > axis.title.y = element_text(size=16, angle=90), > > axis.text.x = element_text(size=14), > > axis.text.y = element_text(size=14), > > panel.grid.major = element_blank(), > > panel.grid.minor = element_blank(), > > legend.position = ?right?, > > legend.key = element_blank() > > ) > > > > > > > > (oo) > > --oOO--( )--OOo---------------- > > Stefano Sofia PhD > > Area Meteorologica e Area n...
2017 Jun 16
1
point size
Hi all; I am running the following ggplot codes. Runs well. However, I need to reflect the numeric values of the log10_P to the point size in the graph. Your help highly appreciated, Regards, Greg p <- ggplot(mydata, aes(x = X, y = log10_P)) + theme_bw() +theme(panel.border=element_blank()) + theme(legend.position="top", axis.text=element_text(size = 8)) (p1 <- p + geom_point(aes(color = Traits) [[alternative HTML version deleted]]
2013 Jul 18
1
Bland Altman summary stats for all column combinations
...fill = value),colour = "white") + geom_text(aes(label = sprintf("%1.2f",value)), vjust = 1) + theme_bw() + scale_fill_gradient2(name="R^2",midpoint=0.7,low = "white", high = "red") + xlab(NULL)+ylab(NULL) + theme(axis.text.x=element_blank(),axis.text.y=element_blank(), axis.ticks=element_blank(),panel.border=element_blank()) + ggtitle(x1$Method) + theme(plot.title = element_text(lineheight=1,face="bold")) + geom_text(data = subset(melt(cor(x1[sapply(x1,is.numeric)])),Var1==Var2),aes(label=Var1),vjust=3 ) }) #Function to g...
2013 May 14
1
Tamaño plots y calidad en grafico ggplot
...= Mean + 1.96*Mean.Error),col="gray40", width=0.3, size=1) + geom_point(data=tabla, aes(y=Mean), size = 3, colour ="gray30", pch=16) + labs(x="", y="")+ theme(panel.background=element_rect(fill="white", colour="#B4CDFF"), panel.grid.minor=element_blank(), panel.grid.major.y=element_blank(), axis.text = element_text(colour = "black"), legend.position="none") + guides(fill = guide_legend(label.position = "bottom"))+ coord_flip() #......................................... Un saludo jm~ _____________________________...
2012 Sep 16
1
How to plot two lines, and only one line with errorbar by qqplots of R
....beta1, std.beta2, std.beta3) ) limits = aes(ymin = mean.beta - std.beta, ymax = mean.beta + std.beta); maintitle = paste("beta function (std = ", std, ")", sep = ""); p + geom_line() + geom_errorbar(limits, width = 0.05) + ggtitle(maintitle) + theme(legend.title=element_blank(), legend.justification=c(0,1), legend.position=c(0,1))+ scale_x_continuous(breaks=seq(0, 10, .1)) + scale_y_continuous(breaks=seq(0, 13, .1)) + ylab("Beta(t)") + scale_colour_hue(breaks=c("Wrong", "Correct", "Full Bayes")) [[alternative HTML versio...
2017 Aug 04
1
legend and values do not match in ggplot
I have following codes for ggplots. The legends are given in the plot do not match with the values specified in the codes given below. Your helps highly appreciated. Greg library(ggplot2) p <- ggplot(a,aes(x=NO_BMI_FI_beta ,y=FI_beta ,color= Super.Pathway))+ theme_bw() +theme(panel.border=element_blank()) + geom_point(size=3) p2<-p+scale_color_manual(name="Super.Pathway", labels=c("Amino Acid", "Cofactors and Vitamins", "Carbohydrate", "Energy", "Lipid", "Peptide", "Nucleotide"), values=c("Amino Acid"...
2013 May 13
0
Tamaño plots y retoques de ticks en grafico ggplot
...Mean + 1.96*Mean.Error),col="gray40", width=0.3, size=1) + geom_point(data=tabla, aes(y=Mean), size = 3, colour ="gray30", pch=16) + labs(x="", y="")+ theme(panel.background=element_rect(fill="white", colour="#B4CDFF"), panel.grid.minor=element_blank(), panel.grid.major.y=element_blank(), axis.text = element_text(colour = "black"), legend.position="none") + guides(fill = guide_legend(label.position = "bottom"))+ coord_flip() #........................................................ Un saludo jm~ ______________...
2018 Apr 04
1
Plot data in sequence
...2 2.99 STAM 12131 2.97 STAM 12132 2.89 STAM 13141 2.84 STAM 13142 2.79 STAM 14151 2.79 STAM 14152 2.77 ') ggplot(data=datn, aes(x=STATUS, y=CGPA, group=LEVEL, colour=LEVEL),cex.axis=0.2, ylim=c(0,4)) + geom_line(size=1.3) + geom_point()+ #guides(fill=FALSE) + theme(legend.title=element_blank(),legend.position=c(.3, .3),axis.text.x = element_text(size=8),axis.text=element_text(size=10)) Thank you very much. -- *Roslinazairimah Zakaria* *Tel: +609-5492370; Fax. No.+609-5492766* *Email: roslinazairimah at ump.edu.my <roslinazairimah at ump.edu.my>; roslinaump at gmail.com <ro...
2013 Sep 26
1
Less than equal to symbol in ggplot2 legend text
...sqrt(length(Yvar))) df = df[df$N>=10,] PLot=ggplot(df, aes(x=AVST, y=meanYvar, shape=Extra.column)) + scale_y_continuous(name="Mean Yvar ± SE" )+ scale_x_continuous(name="Time (year)")+ theme(axis.text.x = element_text(size=16,colour="black"),legend.title = element_blank(), axis.text.y = element_text(size=16,colour="black"),plot.title = element_text( face="bold",size=18), legend.justification=c(0,1), legend.position=c(0,1), axis.title.x = element_text(face="bold", colour="black", size=16,vjust=0...
2018 Feb 12
2
plotting the regression coefficients
Petr, there was a thinko in your response. tmp <- data.frame(m=factor(letters[1:4]), n=1:4) tmp tmp$m <- factor(tmp$m, levels=c("c","b","a","d")) ## right tmp[order(tmp$m),] tmp <- data.frame(m=factor(letters[1:4]), n=1:4) levels(tmp$m) <- c("c","b","a","d") ## wrong tmp[order(tmp$m),] changing levels