Ggplot2: Difference between revisions
From genomewiki
Jump to navigationJump to search
(Created page with "* Tutorials ** https://wiki.nbic.nl/index.php/R_ggplot2_tutorial * remove the grey background of all graphs: theme_set( theme_bw() ) * Data ** you can subset the dataframe, bu...") |
No edit summary |
||
Line 3: | Line 3: | ||
* remove the grey background of all graphs: theme_set( theme_bw() ) | * remove the grey background of all graphs: theme_set( theme_bw() ) | ||
* replot the last graph: last_plot() + modificationsYouWantToAdd | |||
* Data | * Data | ||
** you can subset the dataframe, but then you need to do something like d$category = drop.levels(x, reorder=F, ...) (gdata package) | ** you can subset the dataframe, but then you need to do something like d$category = drop.levels(x, reorder=F, ...) (gdata package) |
Latest revision as of 10:53, 8 January 2012
- remove the grey background of all graphs: theme_set( theme_bw() )
- replot the last graph: last_plot() + modificationsYouWantToAdd
- Data
- you can subset the dataframe, but then you need to do something like d$category = drop.levels(x, reorder=F, ...) (gdata package)