Brian Diggs

Portland, Oregon

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

May
25
revised Custom color in a map(polygons) by ggplot in R and plot a legend
added 336 characters in body
May
25
answered Custom color in a map(polygons) by ggplot in R and plot a legend
May
24
awarded Nice Answer
May
22
awarded Nice Answer
May
17
awarded Enlightened
May
14
comment ggplot plotting the y-axis values in wrong order
I looks like Dollars_of_the_day is a factor, not a numeric variable. If you expect it to be a number (which you seem to), then there is some non-numeric values in that column in your .csv file. Fix that up and reimport or translate the factor labels to numeric values.
May
14
answered controlling time-scale & binwidth on x-axis in ggplot2
May
14
comment How to draw a ggplot2 with facet_wrap, showing percentages from each group, not overall percentages?
See also: stackoverflow.com/q/11026016/892313
May
14
revised ggplot: plotting percentage of counts for different variables
Code formatting, added R tag
May
14
comment ggplot: plotting percentage of counts for different variables
possible duplicate of ggplot graphing of proportions of observations within categories
May
8
answered Create flexible ggplot2 theme that 1) makes the legend and titles larger, 2) will look good irrespective of the final dimensions
May
5
awarded Announcer
May
5
awarded Guru
May
4
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.
May
4
comment how to subset data in R using conditional operation booleans
possible duplicate of Subsetting a dataframe in R by multiple conditions
May
4
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).
May
4
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.
May
4
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.
1 2 3 4 5