search for: expand_limit

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

Did you mean: expandlimit
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...
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(...
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...
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...