Publications by James
3D Interaction between Stress and Social Support on Mental Health
# Load the plotly library library(plotly) ## Warning: package 'plotly' was built under R version 4.2.3 ## Loading required package: ggplot2 ## ## Attaching package: 'plotly' ## The following object is masked from 'package:ggplot2': ## ## last_plot ## The following object is masked from 'package:stats': ## ## filter ## The following...
12 sym R (1458 sym/8 pcs)
Multiple Regression 3D and Multiple Regression with Interactions
# Load the plotly library library(plotly) ## Warning: package 'plotly' was built under R version 4.2.3 ## Loading required package: ggplot2 ## ## Attaching package: 'plotly' ## The following object is masked from 'package:ggplot2': ## ## last_plot ## The following object is masked from 'package:stats': ## ## filter ## The following...
14 sym R (2476 sym/9 pcs)
Applied Spatial Data Analysis with R
I have just reviewed the book Applied Spatial Data Analysis with R which has been published in the September2009 issue of the Royal Statistical Society’s Significance magazine. Applied Spatial Data Analysis with R is an accessible text that demonstrates and explains the handling of spatial data using the R Software Platform. The text’s au...
1313 sym 4 img
Lattice: Multivariate Data Visualization with R
I have just reviewed Sarkar‘s Lattice: Multivariate Data Visualization with R for the Journal of the Royal Statistical Society Series A. I would highly recommend the book to all R users who wish to produce publication quality graphics using the software. You can read the full review here. Related To leave a comment for the author, please fo...
700 sym 6 img
Making Maps with R
***This tutorial has been updated, please click here*** I frequently use R (a free software environment for statistical computing and graphics) for data analysis. As almost all my data are spatial it is often good to produce a map of the results without having to export the data into another GIS package. I am often asked how to do this so I hav...
1084 sym 4 img
Free GIS Resources
Over the last couple of days I have utilised some excellent free GIS resources. I have listed these and some others below. Geospatial Analysis: This is the free online version of de Smith, Longley and Goodchild’s excellent book by the same title. It provides full coverage of current GIS methodologies. It also provides extensive information rega...
1827 sym 4 img
R Maps
This is an updated version of my Making Maps with R tutorial. I think the code is lot simpler and it also includes some data for you to play around with. Background: Spatial data are becoming increasingly common, as are the tools available in R to process it. Of course one of the best ways of visualizing spatial data is through a map. Maps n...
1258 sym 4 img
Writing a Spatial Function: The Location Quotient
Background: In some cases it is necessary to conduct the same analysis multiple times on either the same or different data. In such circumstances it is worth writing a function to simplify the code. In this example the location quotient provides a simple calculation easily written in to a function. The location quotient (LQ) is an index for compa...
1535 sym 2 img
Clipping a Surface By a Polygon
Background: A common function in standard GIS software enables users to create a raster surface and extract values or clip it based on a set of polygons. This may be used in cases where you want analysis to be constrained to within a town’s boundaries or a coastline. This tutorial will outline how to create a surface using kernel density estima...
1088 sym 4 img
Maps with ggplot2
The ggplot2 package offers powerful tools to plot data in R. The plots are designed to comply with the “grammar of graphics” philosophy and can be produced to a publishable level relatively easily. For users wishing to create a good map without too much thought I would recommend this worksheet. For those without their own shapefiles who rely ...
1086 sym 4 img