You are here: Vanderbilt Biostatistics Wiki>Main Web>Seminars>RClinic (01 Nov 2018, LaurieSamuels)EditAttach

`Sweave`

and/or `LaTeX`

related helpful tips.
- An alternative to 'dynamite plots' (i.e., a bar depicting the mean, with a line depicting the standard deviation or error)
- Using the
`layout()`

function to generate multiple plots - Drawing outside of the plotting region (e.g., lines or a legend)
- Adding a 'broken' axis to a plot
- A back-to-back barplot from scratch
- Distinguishing a second categorical variable by color in a stripchart across groups
- The generic
`datadensity()`

function - Plotting linear model results
- Plot the Kaplan-Meier (K-M) curves from two different K-M calculations on the same plot
- A plot that illustrates the effect of categorizing continuous covariates in a logistic regression model
- Plot the odds ratios (ORs) for a specific covariate from different logistic regression models
- Incorporate the third contrast of a three-level categorical predictor into the odds ratio summary plot of a logistic regression model
- Dot charts using
`Hmisc dotchart2`

and`Dotplot`

- Nonparametric smooth trend lines using
`Hmisc plsmo`

- Converting dates of the form 'mddyy', 'mddyyyy', 'mmddyy', or 'mmddyyyy' to the form 'YYYY-MM-DD'
- Coding factors with numerical levels instead of character ones (i.e. No/Yes coded as 0/1)
- Generating a complex table of drug, disease, and phase
- Generating a variable that correctly labels each subject's records as their first, second, etc. visit according to a visit date
- Finding the sum of repeated continuous variables for each subject
- Rafe's problem
- Jonathan's problem
- Preparing data for survival analysis
- Cole Beck's baseball data set problem
- Rafe's data reshape problem

- How to write your own functions and good R programing techniques
- A function that displays the colors you can specify using the
`colors()`

function - A function that returns the desired output from another function
- Cole Beck's proposed multiple sorting solution

- Generating data structures in a memory efficient manner
- Writing a list of vectors to a file
- Viewing wide matrices and data frames with scrolling
- Using the
`Hmisc`

package's`summary.formula()`

function - Survival analysis with the
`survival`

and`Design`

packages - Block Randomization with Random Block Sizes
- Generating multiple regression models in a
`for`

loop - Parsing email lists to create better output

- Sweave and Latex
- Writing R Extensions
- R and VIM: Instructions on how to install custom vim syntax and indent files. These files enable
`vim`

to indent R correctly and syntax highlight common function names. - Emacs and ESS
- Firefox extension for "R Site Search" (i.e., search for your R routines directly from Firefox -- see http://addictedtor.free.fr/rsitesearch).
- Mango Solutions, providers of R and S-Plus consulting, application development and training, have announced the first release of the R Site Search extension for Mozilla Firefox. This extension enables you to search from Jonathan Baron's R Site Search (http://search.r-project.org) in a convenient way.
- It will enable you to conveniently browse or search the content of the packages listed in Jon's server. Browsing is arranged in a 'package/documentation file' tree. Each hit is accompanied with a small icon which highlights the type of found object. This is useful as you can quickly find which page is refers to a dataset, clustering, time series etc...
- Searching builds a new tree transparently on http://search.r-project.org and it shows only the relevant pages which may be viewed from the tree itself. Additionally the extension handles filters on the package names. Some examples are given on the homepage but I'm sure there are already regex-friendly people around with more ideas!

Edit | Attach | Print version | History: r100 < r99 < r98 < r97 | Backlinks | View wiki text | Edit wiki text | More topic actions

Topic revision: r100 - 01 Nov 2018, LaurieSamuels

Copyright © 2013-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki? Send feedback

Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki? Send feedback