Brian Diggs

Portland, Oregon

I am a biostatistician, data analyst, and theoretical physicist in the Portland, Oregon area.

18h
awarded Announcer
19h
awarded Guru
1d
comment how to subset data in R using conditional operation booleans
The above duplicate is if you wanted to subset the data before passing it to ggplot. If you want to do the limits in ggplot, look at the limits arguments to scale_x_continuous and scale_y_continuous (or the xlim and ylim arguments to coord_cartesian. Without a reproducible example, I'm just guessing at what you want.
1d
comment how to subset data in R using conditional operation booleans
possible duplicate of Subsetting a dataframe in R by multiple conditions
1d
comment Sweave to LaTeX "undefined control sequence" error
@ArunRaja Not really. If you are having the same problem and this solution does not help, you need to create a new question and describe in detail your problem. Also, link to this question and explain why the solution here does not help you (what errors it gives).
2d
comment R - Interpreting a subscript in a variable used in ggplot
@GeraldNelson I can not personally recommend any particular book. I didn't learn from a book because there weren't any at the time.
2d
revised R - Interpreting a subscript in a variable used in ggplot
More details of the logic
May
3
answered R - Interpreting a subscript in a variable used in ggplot
May
1
comment R - Making ggplot look good for 2-color printing?
And if you are mapping anything to colour/fill, you can use scale_colour_grey/scale_fill_grey.
Apr
30
comment How to turn color codes to alphabet labels in ggplot
@Saeed stackoverflow.com/a/10440469/892313
Apr
30
answered Dates with month and day in time series plot in ggplot2 with facet for years
Apr
30
answered How to turn color codes to alphabet labels in ggplot
Apr
30
revised How to turn color codes to alphabet labels in ggplot
code formatting; typo; cleanup
Apr
28
comment With scale_size_area, add lines from top and bottom to next area point
I don't think so, at least not with anything built-in. The only approach I can think of involves partially building the plot to force all the scales to be trained, and then pulling apart the trained scale information to determine what the radius of each circle is (in appropriate units), then use that to figure out where the top and bottom of the circle are, and use that to specify the ends of the segments. Not at all trivial.
Apr
27
comment Interpolating correctly between points in R using ggplot2 and axis scaling
@Anthony You would specifically want a scale transformation when you want to work in the transformed space; think of a log-log plot where the straight line is in the transformed coordinates. Additionally, scale transformations can be used to bring other ordered, continuous data types (dates, times, etc.) into a numeric representation which can be plotted and manipulated.
Apr
24
answered Interpolating correctly between points in R using ggplot2 and axis scaling
Apr
22
answered How do I set breaks when using a percentage scale on ggplot2?
Apr
22
comment How do I set breaks when using a percentage scale on ggplot2?
Do you realize that you can specify both arguments in the same scale_x_continuous call? scale_x_continuous(breaks=seq(0,2,by=0.1), labels=percent)
Apr
20
awarded Constituent
Apr
20
awarded Caucus
1 2 3 4 5