Brian Diggs

Portland, Oregon

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

Jan
25
awarded Necromancer
Jan
25
awarded Popular Question
Jan
23
answered Each xtable produced in R-loops should have \begin{table}..\end{table} environment in Sweave
Jan
20
awarded Enlightened
Jan
20
awarded Nice Answer
Jan
18
revised How to get a reversed, log10 scale in ggplot2?
Explicit inclusion of library("scales")
Jan
18
comment How to get a reversed, log10 scale in ggplot2?
@Richard I just checked it and it works, but the scales package must be attached to the search path (library("scales")). That is not clear in the answer (and may not have been necessary at the time). Updating.
Jan
12
comment How to write unit tests for suggested packages?
This would only work with some setup ahead of time, and would fail on a standard installation (so should probably be used in conjunction with skip_on_cran), but you can put the suggested packages in a separate library and as part of the test setup make sure that library is/is not on the search path to test the two different cases.
Jan
12
answered Switch statement matching any of a set of cases
Jan
12
awarded Revival
Dec
29
answered Using an R calculation in an article abstract
Dec
27
revised Why is there a difference between length(f) and length(g) in this example?
Added part about length being and Internal Generic Method which changes why things happen
Dec
27
revised How can I view the source code for a function?
Update R source github mirror URL as previous value gave a 404 error
Dec
24
answered Why is there a difference between length(f) and length(g) in this example?
Dec
24
comment ggplot2 - shade area between two vertical lines
@PatrickT Thanks. Clarified that in the answer.
Dec
24
revised ggplot2 - shade area between two vertical lines
make it clear that it is the fill, not colour aesthetic
Dec
10
comment General solution for "figure margins too large"
dev.new opens a new graphics device, and you can specify hieght and width, and it works for any setup. You can use that to make a "big enough" canvas no matter what system you are working under.
Dec
5
comment How can I view the source code for a function?
This approach only brings up the same function source that printing the function gives (that is, the same as in the question). Getting further/deeper than that is what this question is about.
Dec
4
comment Decision Tree algorithms in R packages
There are multiple packages, some with multiple methods for creating a decision tree. Different packages may use different algorithms. Some of those packages and functions may allow choice of algorithm, and some may implement only one (and, of course, not all the same one). I would suggest just searching (using, for example, the sos package) for those algorithms to see what packages/functions implement them.
Dec
4
comment set only lower bound of a limit for ggplot
@PatrickT Did you mean that as a comment to stackoverflow.com/q/27028825/892313?
1 2 3 4 5