search for: expand_limit

Displaying 16 results from an estimated 16 matches for "expand_limit".

Did you mean: expand_limits
2013 Jul 25
1
GGplot 2 – cannot get histogram and box plot axis to match.
Problem: I am trying to get the histogram and box plot x axis to match. I?ve tried using the expand_limits function to make the axis match but that didn?t make the axis match. The histogram?s axis are still consistently larger than the ones for the box plot (though the function did help). Does anyone have a suggestion as to what I should do instead? Background: I am building a Shiny app that displays...
2024 Jul 18
2
ggplot two-factor legend
...ot;BIO"))+ scale_fill_manual(values=c("red","dark green"), labels= c("?LN", "BIO"))+ theme(legend.title = element_blank())+ theme(legend.text=element_text(size=20))+ scale_linetype_manual(values=c("dashed", "solid")) p1<-p1 + expand_limits(y=c(0, 30)) kind regards Sibylle
2024 Aug 16
2
boxplot notch
...s=c("red","darkgreen"), labels=c("?LN", "BIO"))+ scale_fill_manual(values=c("red","darkgreen"), labels= c("?LN", "BIO"))+ theme(legend.title = element_blank())+ theme(legend.text=element_text(size=20)) p1<-p1 + expand_limits(y=c(0, 80)) p1 -----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Ben Bolker Sent: Friday, August 16, 2024 3:30 PM To: r-help at r-project.org Subject: Re: [R] boxplot notch I don't see anything obviously wrong here. There may be something subtle,...
2014 Jun 20
1
zuzufarah Help with ggplot 2 error: Aesthetics must either be length one, or the same length as the dataProblems
...UA_discharge<-WUA.df[,1] colour_scheme<-palette(rainbow(dim(WUA_table)[2])) # Main scatterplot p1 <- ggplot(NULL, aes(WUA_discharge,WUA_table)) + geom_line() + scale_color_manual(values=colour_scheme)+ scale_x_continuous(expand = c(0, 0)) + scale_y_continuous(expand = c(0, 0)) + expand_limits(y = c(min(WUA_table) - .1*diff(range(WUA_table)), max(WUA_table) + .1*diff(range(WUA_table)))) + expand_limits(x = c(min(WUA_discharge) - .1*diff(range(WUA_discharge)), max(WUA_discharge) + .1*diff(range(WUA_discharge)))) + theme(plot.margin= unit(...
2024 Aug 16
1
boxplot notch
...els=c("?LN", "BIO"))+ > > scale_fill_manual(values=c("red","darkgreen"), labels= c("?LN", "BIO"))+ > > theme(legend.title = element_blank())+ > > theme(legend.text=element_text(size=20)) > > p1<-p1 + expand_limits(y=c(0, 80)) > > p1 > > > [[alternative HTML version deleted]] > > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posti...
2012 Aug 04
1
Getting unknown error trying to plot spatial data
...rror in `$<-.data.frame`(`*tmp*`, "OBJECTID", value = integer(0)) : replacement has 0 rows, data has 16249* > > > ## Make the map > > p1 <- ggplot(my_data, aes(map_id = zip)) > p1 <- p1 + geom_map(aes(fill=vol, map_id = zip), map = pds) > p1 <- p1 + expand_limits(x = pds$lon, y = pds$lat) + coord_equal() > p1 + xlab("Basic Map with Default Elements") *Error in unit(x, default.units) : 'x' and 'units' must have length > 0* Anybody have any idea what is happening here or how to resolve this? Thanks!!!! -- View this messag...
2024 Aug 16
1
boxplot notch
..."red","darkgreen"), labels=c("?LN", "BIO"))+ scale_fill_manual(values=c("red","darkgreen"), labels= c("?LN", "BIO"))+ theme(legend.title = element_blank())+ theme(legend.text=element_text(size=20)) p1<-p1 + expand_limits(y=c(0, 80)) p1 [[alternative HTML version deleted]]
2024 Aug 11
1
geom_smooth with sd
...uot;darkgreen"), labels= c("?LN", "BIO"))+ theme(legend.title = element_blank())+ theme(legend.text=element_text(size=20))+ scale_linetype_manual(values=c("dashed", "solid"), labels=c("?LN", "BIO")) p1<-p1 + expand_limits(y=c(0, 30)) When comparing the plots to the simple statistics the standard deviation do not match. I assume it is because of the na.rm=TRUE which does not match length(y) in the after_stat code. However I was not able to adapt the code using NA values? Simple statistics > mean(MS2020[...
2024 Jul 18
1
ggplot two-factor legend
..._manual(values=c("red","dark green"), labels= c("?LN", > "BIO"))+ > theme(legend.title = element_blank())+ > theme(legend.text=element_text(size=20))+ > scale_linetype_manual(values=c("dashed", "solid")) > p1<-p1 + expand_limits(y=c(0, 30)) > > kind regards > Sibylle > > ______________________________________________ > R-help at 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/post...
2024 Aug 11
1
geom_smooth with sd
...", "BIO"))+ > > theme(legend.title = element_blank())+ > > theme(legend.text=element_text(size=20))+ > > scale_linetype_manual(values=c("dashed", "solid"), labels=c("?LN", > "BIO")) > > p1<-p1 + expand_limits(y=c(0, 30)) > > > > When comparing the plots to the simple statistics the standard deviation do > not match. I assume it is because of the na.rm=TRUE which does not match > length(y) in the after_stat code. However I was not able to adapt the code > using NA values? > >...
2024 Jul 18
1
ggplot two-factor legend
...le_fill_manual(values=c("red","dark green"), labels= c("?LN", >"BIO"))+ > theme(legend.title = element_blank())+ > theme(legend.text=element_text(size=20))+ > scale_linetype_manual(values=c("dashed", "solid")) >p1<-p1 + expand_limits(y=c(0, 30)) > >kind regards >Sibylle > >______________________________________________ >R-help at 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-guid...
2024 Jul 18
1
ggplot two-factor legend
...red","dark green"), labels= c("?LN", >> "BIO"))+ >> ????theme(legend.title = element_blank())+ >> ?? theme(legend.text=element_text(size=20))+ >> ?? scale_linetype_manual(values=c("dashed", "solid")) >> p1<-p1 + expand_limits(y=c(0, 30)) >> >> kind regards >> Sibylle >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide...
2024 Aug 16
1
boxplot notch
...ot;darkgreen"), labels=c("?LN", "BIO"))+ > scale_fill_manual(values=c("red","darkgreen"), labels= c("?LN", "BIO"))+ > theme(legend.title = element_blank())+ > theme(legend.text=element_text(size=20)) > p1<-p1 + expand_limits(y=c(0, 80)) > p1 -- Chris Evans (he/him) Visiting Professor, UDLA, Quito, Ecuador & Honorary Professor, University of Roehampton, London, UK. Work web site: https://www.psyctc.org/psyctc/ CORE site: http://www.coresystemtrust.org.uk/ Personal site: https://www.psyctc.org/pelerinage2016/ E...
2018 Mar 19
1
Labelling a fortified GADM map plotted with ggplot and geom_map
...me = "Children Reached", #sets the gradient of the value scale: names the scale low = grey_2, #color of the low end high = orange_1) + #color of the high end expand_limits(x = tract$long, #ensure limits include all values for all plots y = tract$lat) + labs(x = NULL, #add labels, no x title y = NULL, #...
2009 Dec 22
0
ggplot2 version 0.8.5
...data. (Implements #28) * coord_equal: when ratio = NULL (the default), it will adjust the aspect ratio of the plot, rather than trying to extend the shortest axis. * x and y positions can be set to Inf or -Inf to refer to the top/right and bottom/left extents of the panel. (Implements #18) * expand_limits(): a new function to make it easy to force the inclusion of any set of values in the limits of any aesthetic. New features (minor) * aesthetics: when _setting_ an aesthetic, you may only set it to a single value. This was always a good idea, but now it is enforced with an informative erro...
2009 Dec 22
0
ggplot2 version 0.8.5
...data. (Implements #28) * coord_equal: when ratio = NULL (the default), it will adjust the aspect ratio of the plot, rather than trying to extend the shortest axis. * x and y positions can be set to Inf or -Inf to refer to the top/right and bottom/left extents of the panel. (Implements #18) * expand_limits(): a new function to make it easy to force the inclusion of any set of values in the limits of any aesthetic. New features (minor) * aesthetics: when _setting_ an aesthetic, you may only set it to a single value. This was always a good idea, but now it is enforced with an informative erro...