Brian Diggs

Portland, Oregon

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

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?
Dec
2
comment Way to remove whitespace from a legend in ggplot2
theme(axis.title.x = element_blank()) helps some, but does not give you much control. That makes the blank x title not take up any space.
Nov
28
revised How to extract objects from an output of an nls model that is stored in a list of lists?
edited body
Nov
27
comment how to determine legend position ggplot2
If you are looking to put it inside the plot frame, you can refer to the right/top as Inf. If you are looking for outside the frame, you may want to look at custom annotations.
Nov
25
comment Embedding image breaks javascript in RMarkdown presentation
caching in your browser? If it can't be reproduced, then it can't be diagnosed.
Nov
24
answered How to remove the symbol "\" in a string?
Nov
23
revised Unable to read in .xls from R
Slight grammar changes
Nov
22
comment Unable to read in .xls from R
@BondedDust Thought I'd give Richard a fair shot at answering it since he figured out the solution. But since he hasn't yet, I did.
Nov
22
answered Unable to read in .xls from R
Nov
22
comment Unable to read in .xls from R
It sounds like what you had was not, in fact, an XLS formatted file (neither OOXML nor BIFF(?)), but rather a tab delimited text file. There is a trick whereby a file in a format that excel can understand is given the .xls extension so that Excel is opened when you open it via a GUI. Try looking at the file in a text editor to see what it really is (or use the file command line utility if it exists in you operating system).
Nov
20
awarded Enlightened
Nov
20
awarded Nice Answer
Nov
20
comment ggplot2 Force y-axis to start at origin and float y-axis upper limit
Does stackoverflow.com/q/11214012/892313 answer your question, or do you need the bottom of the y-axis to be exactly 0 with no padding (while the top of the y-axis still has the normal padding)?
Nov
20
revised Increment ems/rems by 0.1 in firebug or chrome dev tools?
edited tags
Nov
20
revised Coloring R input and output differently using knitr
converted stack snippet to code block
Nov
20
answered Density scale of Y axis mysteriously changed when X scale is transformed to log10
Nov
19
answered Merging predicted values into measured values
1 2 3 4 5