examples of R - useful codes
This is my collection of R tests and examples I have been gathering through my learning of R.
Most of the examples are available online from blogs or tutorials without major changes, although some may have been adapted slightly. The original sources are included in each file.
Note that they are focused on my fields of work and applications.
- ex_animated_hurricanes - load tracts of hurricanes, select the North Atlantic basin and plots them for each season in black background
- ex_build_library - to create packages
- ex_cluster_analysis - comparsion of different clustering algorithms and functions
- ex_corrplot_pkg - calls and plots of correlation matrix from the corrplot package
- ex_heatmaps - advanced data operations and heatmaps plots
- ex_Intervals - to create intervals as in GIS with Jenk´s algorithm
- ex_plotly - example of plotly calls
- ex_qplot - examples to use qplot
- ex_rchart - cool tables and plots in rchart - java-like
- ex_spatial_extract_from_raster_by_polygon - read raster, extract in one mask and plot rasters
- export_data - examples of how to export data: ascii, xls, etc.
- how_to_evaluate_machLearning_algorithms - blog on how to evaluate and compare algorithms
- use_dplyr_and_datatables - how to use dplyr and data.tables for advanced handling of data frames
- ex_Rmd_plotly.RmD - create a Markdown and Plotly (uses -GetYahooData-)