search for: segmentsgrob

Displaying 4 results from an estimated 4 matches for "segmentsgrob".

2009 Jun 04
0
type = 'b' with Grid
...scaling[start] * dx[(start+1)/2] + new.x[start] # shift the points y.start <- scaling[start] * dy[(start+1)/2] + new.y[start] # keeping the direction of the initial segments x.end <- new.x[end] - scaling[end] * dx[end/2] y.end <- new.y[end] - scaling[end] * dy[end/2] grob.lines <- segmentsGrob( x0 = x.start, y0 = y.start, x1 = x.end, y1=y.end, default.units="native", gp = gpar( col = colour, lex = linewidth, lty = linetype, lineend = "butt" ) ) grob.points <- pointsGrob(x, y, pch=shape, size=unit(size, "char"), gp = gpar(...
2007 Sep 27
3
Plotting from different data sources on the same plot (with ggplot2)
Hello everyone (and Hadley in particular), I often need to plot data from multiple datasets on the same graph. A common example is when mapping some values: I want to plot the underlying map and then add the points. I currently do it with base graphics, by recording the maximum region in which my map+point will fit, plotting both with these xlim and ylim parameters, adding par (new=T)
2008 Jan 11
0
New version of ggplot2: 0.5.7
...rd_equal: now scales correctly if ratio < 1 * geom_abline: fix bug where slope was ignored * geom_jitter now works correctly with groups and categorical values (was actually a bug in how scale_discrete deals with continuous values) * geom_path: automatically switch between polylineGrob and segmentsGrob when drawing paths so that setting line type now works properly * geom_segment now uses both ends of segments to calculate axis limits * plotmatrix: fix bug in scatterplot matrix where all scatterplots were transposed! * qplot: should now work better within functions * quickplot added as an...
2008 Jan 11
0
New version of ggplot2: 0.5.7
...rd_equal: now scales correctly if ratio < 1 * geom_abline: fix bug where slope was ignored * geom_jitter now works correctly with groups and categorical values (was actually a bug in how scale_discrete deals with continuous values) * geom_path: automatically switch between polylineGrob and segmentsGrob when drawing paths so that setting line type now works properly * geom_segment now uses both ends of segments to calculate axis limits * plotmatrix: fix bug in scatterplot matrix where all scatterplots were transposed! * qplot: should now work better within functions * quickplot added as an...