-
R color palettes # Basic grDevice rainbow topo…
agnieszka chylińska nowy singiel R color palettes Basic grDevice rainbow() topo.colors() terrain.colors() heat.colors() my.palette
-
RColorBrewer palette names
Adjumani RColorBrewer palette names.
-
Nice guide for R graphics http blog revolutionanalytics…
Nice guide for R graphics http://blog.revolutionanalytics.com/2009/01/10-tips-for-making-your-r-graphics-look-their-best.html
-
Sometimes R gives the error message Error in…
Sometimes R gives the error message. Error in X11(d$display, d$width, d$height, d$pointsize, d$gamma, d$colortype, : unable to start device X11cairo Here is the fix. Sys.setenv(“DISPLAY”=”:0.0″)
-
Two ways to save a plot in png…
Two ways to save a plot in png. dev.copy() saves the plot with transparent background while savePlot() with white background. See the difference. dev.copy(device = png, file = “devcopy.png”) dev.off() savePlot(file = “saveplot.png”)
-
Using discontinuous axis or breaks may not…
Using discontinuous axis or “breaks” may not be a good idea to visualize data. Instead, use two plots, one with the whole data and another for zoomed data. However, if the situation is not allowed, there is an R package to do it. The package plotrix can put breaks or gaps on the axes.
-
Using smooth spline in stat scale in ggplot2…
Using smooth.spline in stat_scale in ggplot2 smooth.spline2
-
Network visualization tool http://gephi …
Network visualization tool http://gephi.org/
-
Print summary results or other outputs o …
Print summary results or other outputs on the R plot Use capture.output. summary.text