search for: scale_size

Displaying 20 results from an estimated 20 matches for "scale_size".

2008 Aug 25
1
ggplot scale_size - is there any way to specify breaks?
...the y-axis - dots proportional to the Score are plotted at the resultant grid. It works just as I want. However, I want to plot a number of these graphs (eg. datasets from different grades or school years) and want to keep the dot sizes consistent across the various graphs. The default behavior of scale_size() seems to be to train on the given dataset so if the range of scores is different for different datasets then the dot sizes can be inconsistent. For example, assume that the scores for the various subjects can range from 1 to 4. Typically, the scores will have span the entire range but it is not g...
2009 Sep 14
1
ggplot2 legend text....a basic question
Hello fellow R's, I?ve been learning to use the ggplot2 library, and after a full day of work I still have a couple of basic questions. Here is an example: mydata=data.frame(x=runif(20),y=runif(20),n=runif(20)) mydata2=data.frame(x=c(0.4,0.6,0.5),y=c(0.4,0.4,0.6)) ggplot(mydata, aes(x, y)) + geom_point(aes(size = n)) + geom_polygon(data=mydata2,aes(x,y,alpha=0.5)) In this plot, the
2008 May 12
2
ggplot2: font size mismatch for pdf output
...w do I control the size of fonts used in legends and axis labels? library(car) library(ggplot2) qp <-qplot (education , income , shape=type , size=women , colour=prestige , xlab="Education" , ylab="Income", data=Prestige) + scale_y_continuous(limits=c(NA, 20000)) qp + scale_size(to=c(1,8)) ggsave(file="prestige-ggplot.png", width=6, height=5) # OK ggsave(file="prestige-ggplot.pdf", width=6, height=5) # fonts too large -Michael
2024 Mar 22
1
geom_edge & color
...try this :) geom_node_point(aes(size = V(network)$hub_score*200, color=V(network)$Subcategory_type)) + geom_node_text(aes(label = V(network)$name), size=3, color="white", repel=T)+ scale_color_scico_d(palette = "batlow")+ scale_edge_width(range = c(0.2,4))+ scale_size(range = c(0.5,15)) + theme(plot.background = element_rect(fill = "black"), legend.position = "right", panel.background = element_rect(fill = "black")) --- snip --- At least in my data created with your code, the object "network" does...
2024 Mar 22
1
geom_edge & color
...pha=0.5)) + geom_node_point(aes(size = V(network)$hub_score*200, color= as.factor(V(network)$community))) + geom_node_text(aes(label = V(network)$name), size=3, color="white", repel=T)+ scale_color_scico_d(palette = "batlow")+ scale_edge_width(range = c(0.2,4))+ scale_size(range = c(0.5,15)) + theme(plot.background = element_rect(fill = "black"), legend.position = "right", panel.background = element_rect(fill = "black")) dev.off() -----Original Message----- From: R-help <r-help-bounces at r-project.org> On...
2011 Apr 03
1
another question on shapefiles and geom_point in ggplot2
...ggplot(manuel_merged, aes(long,lat,group=group)) +   geom_polygon(aes(data=manuel_merged,fill=Area_Influ)) +   geom_path(color="white") + theme_bw() # remove this if you don't want black and white background   p + geom_point(data=manuel_points,aes(size=ACE,colour=ACE,group=NULL)) +   scale_size(name = "Número\nde\nespecies", breaks = c(2, 4, 6, 8, 10, 12, 14, 16, 18, 20)) +  scale_colour_gradientn(name = 'Número\nde\nespecies',  colours = rainbow(6), breaks = c(2, 4, 6, 8, 10, 12, 14, 16, 18, 20))+  xlab("Longitud") + ylab("Latitud") + opts(axis.tex...
2008 Apr 04
0
ggplot2 - version 0.6
...thetics too * scale_continuous: tweaks to minor breaks to make appearance better on wider range of coordinate systems * scale_discrete: all discrete scales now have labels argument which you can use to override the factor levels * scale_discrete: now works correctly with character vectors * scale_size: changed default range to [0.5, 3] to better reflect new sizing decisions * scale_size: legends resize to avoid overlaps * scale_x_continuous, scale_y_continuous: new convenience functions xlim and ylim (and zlim) that make it even easier to adjust the limits of the x, y, and z axes * stat_bi...
2008 Apr 04
0
ggplot2 - version 0.6
...thetics too * scale_continuous: tweaks to minor breaks to make appearance better on wider range of coordinate systems * scale_discrete: all discrete scales now have labels argument which you can use to override the factor levels * scale_discrete: now works correctly with character vectors * scale_size: changed default range to [0.5, 3] to better reflect new sizing decisions * scale_size: legends resize to avoid overlaps * scale_x_continuous, scale_y_continuous: new convenience functions xlim and ylim (and zlim) that make it even easier to adjust the limits of the x, y, and z axes * stat_bi...
2024 Mar 21
1
geom_edge & color
...point(aes(size = V(network)$hub_score*200, color= > as.factor(V(network)$community))) + > ? geom_node_text(aes(label =? V(network)$name), size=5, color="white", > repel=T)+ > ? scale_color_scico_d(palette = "batlow")+ > ? scale_edge_width(range = c(0.2,4))+ > ? scale_size(range = c(0.5,20)) + > ? #scale_edge_color_manual(values = c(scico(21, palette="batlow")))+ > ? theme(plot.background = element_rect(fill = "black"), > ??????? legend.position = "right", > ??????? panel.background = element_rect(fill = "black")) &...
2024 Mar 20
1
geom_edge & color
...], alpha=0.5)) + geom_node_point(aes(size = V(network)$hub_score*200, color= as.factor(V(network)$community))) + geom_node_text(aes(label = V(network)$name), size=5, color="white", repel=T)+ scale_color_scico_d(palette = "batlow")+ scale_edge_width(range = c(0.2,4))+ scale_size(range = c(0.5,20)) + #scale_edge_color_manual(values = c(scico(21, palette="batlow")))+ theme(plot.background = element_rect(fill = "black"), legend.position = "right", panel.background = element_rect(fill = "black")) dev.off()
2008 Jan 10
6
4 dimensional graphics
Dear all I want to display 4 dimensional space by some suitable way. I searched CRAN and found miscellaneous 3 dim graphics packages which I maybe can modify but anyway I am open to any hint how to efficiently display data like: longitude, latitude, height, value Thank you Petr Pikal petr.pikal at precheza.cz
2009 Feb 25
0
ggplot2 0.8.2
...uares * ggsave: filename now first parameter, not second * qplot: if sample aesthetic is used, stat automatically set to qq * scale_datetime: improved breaks calculation * scale_gradient: better default colour scheme from red to blue (thanks to Charlotte Wickham for providing the Munsell colours) * scale_size and scale_area: increased default size range * stats: all give useful error message if missing a required aesthetic * theme_set warns if missing needed theme elements * theme_text: now possible to right and left align text with hjust=0 and hjust=1 respectively Bug fixes * be explicit about plyr::...
2009 Feb 25
0
ggplot2 0.8.2
...uares * ggsave: filename now first parameter, not second * qplot: if sample aesthetic is used, stat automatically set to qq * scale_datetime: improved breaks calculation * scale_gradient: better default colour scheme from red to blue (thanks to Charlotte Wickham for providing the Munsell colours) * scale_size and scale_area: increased default size range * stats: all give useful error message if missing a required aesthetic * theme_set warns if missing needed theme elements * theme_text: now possible to right and left align text with hjust=0 and hjust=1 respectively Bug fixes * be explicit about plyr::...
2013 Oct 19
3
bold dot size and name in plot
Dear useRs, I have the following data "z" of two variables "x"(z[,1]) and "y"(z[,2]). > dput(z) structure(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66,
2008 Oct 05
0
ggplot2 - version 0.7
...hapter for details * themes: direct access to plot options via $ is now disabled Improved documentation and error messages * facet_grid: documentation improved * qplot: Better error messages when needed variables are missing * scale_discrete: improved error message for too many values in domain * scale_size: improved documentation for discrete variables * online documentation generally tweaked and primped to work a little better and look a little nicer * website now includes a search box * links from rdoc now point to correct pages -- http://had.co.nz/ _____________________________________________...
2008 Oct 05
0
ggplot2 - version 0.7
...hapter for details * themes: direct access to plot options via $ is now disabled Improved documentation and error messages * facet_grid: documentation improved * qplot: Better error messages when needed variables are missing * scale_discrete: improved error message for too many values in domain * scale_size: improved documentation for discrete variables * online documentation generally tweaked and primped to work a little better and look a little nicer * website now includes a search box * links from rdoc now point to correct pages -- http://had.co.nz/ _____________________________________________...
2009 Nov 04
0
Weird errors with R CMD check/ggplot2 in examples: how to debug?
...nything similar? \examples{ require(ggplot2) plot_troops <- ggplot(Minard.troops, aes(long, lat)) + geom_path(aes(size = survivors, colour = direction, group = group)) plot_both <- plot_troops + geom_text(aes(label = city), size = 4, data = Minard.cities) plot_polished <- plot_both + scale_size(to = c(1, 12), breaks = c(1, 2, 3) * 10^5, labels = comma(c(1, 2, 3) * 10^5)) + scale_colour_manual(values = c("grey50","red")) + xlab(NULL) + ylab(NULL) # need to re-scale the plot window to an aspect ratio of ~ 4 x 1 plot_polished } When I run R CMD check on the packag...
2024 Feb 24
1
igraph_vertex
The reason html is specifically advised against as a format is that it does things like mangling data such as is happening in your example. You should repost using settings on you mail client for plain-text. Your code should start by loading necessary packages. You should also not post screen output versions of code since that will insert lots of superfluous "+"'s. Some but not
2024 Feb 26
1
igraph_vertex
...om, alpha=0.5)) + geom_node_point(aes(size = V(network)$hub_score*200, color= as.factor(V(network)$community))) + geom_node_text(aes(label = V(network)$name), size=5, color="white", repel=T)+ scale_color_scico_d(palette = "batlow")+ scale_edge_width(range = c(0.2,4))+ scale_size(range = c(0.5,20)) + #scale_edge_color_manual(values = c(scico(21, palette="batlow")))+ theme(plot.background = element_rect(fill = "black"), legend.position = "right", panel.background = element_rect(fill = "black")) dev.off() -----O...
2024 Feb 26
1
igraph_vertex
Hi, a quick additional note: try "edge.width= E(.)$weight" instead of the current "edge.width= network". Seems to work and makes a visible difference... HTH, Kimmo su, 2024-02-25 kello 19:11 +0000, Kimmo Elo kirjoitti: > > Hi again, > > your code is still not reproducible without modifications, but I > succeed in getting the data straight. All