An Introduction to R: Data Analysis and Visualization By MarkGardener, London, United Kingdom: Pelagic Publishing. 2023. pp. 381. $47.00 (paperback). ISBN: 9781784273385

Emily A. Masterton · Journal of Wildlife Management · 2024

Mark Gardener's book, An Introduction to R: Data Analysis and Visualization, is designed to guide readers from the basics of R programming to more advanced topics. Chapter 1 (A Brief Introduction to R) focuses on installing R and setting up RStudio, which is an important step for those new to the software. Gardener carefully walks readers through this setup process, ensuring they can navigate the environment before tackling coding. For those already familiar with R, this chapter still provides valuable insights, especially in explaining syntax and structure, which can be difficult for newcomers. What sets this book apart is Gardener's focus on explaining why R works the way it does. For example, Chapter 3 (Introduction to R Objects) covers vectors and data frames (2 fundamental components of R) and provides detailed explanations of their use, logic, and functionality, which helps readers feel more confident as they move on to more complex topics such as data analysis. Ultimately, when the user understands the why behind commands, it will help them feel more confident during data analysis. Gardener focuses on practical data manipulation throughout, and this is where the book truly shines. Chapter 8 (Manipulating Data Objects) dedicates significant attention to showing how to clean, organize, and manipulate data using key R packages such as Data Manipulation with Pipes (dplyr) and Tidy Data (tidyr). These packages are essential for managing messy ecological datasets. Gardener also introduces functions such as filter (filter rows), select (select columns), and mutate (modify or create columns), along with examples that mirror the challenges one might encounter in academic and professional settings. The functions and examples provided are particularly useful for large, unstructured datasets. For instance, the mutate function is invaluable for adding new variables and transforming data for subsequent analysis. This type of practical advice is critical for anyone looking to improve their data cleaning and manipulation skills. An Introduction to R covers a wide range of statistical analysis techniques, which are important for data-driven decision-making. Chapters 9 (Summarizing Data) and 10 (Tabulation) start with basics such as probability distributions, hypothesis testing, and inferential statistics before moving to more advanced topics like linear regression, logistic regression, and analysis of variance (ANOVA). Each concept is explained thoroughly in terms of its theoretical background and its practical application in R. This focus on the how and why makes even complex topics approachable for readers with varying levels of experience. As someone working in an applied field, such as wildlife management, I found the chapter on logistic regression particularly useful for species distribution models. The detailed explanations combined with clear, annotated code make it easy to follow along and apply to your own research. As the title implies, the book places a strong emphasis on data visualization, particularly using the Grammar of Graphics Plotting package (ggplot2). Chapters 11 (Graphics: Basic Charts) and 12 (Graphics: Adding to Plots) discuss data visualization as an important part of the analysis process and how it helps to communicate results more effectively. The book starts with simple visualizations such as bar charts and histograms and moves to more complex graphics like scatter plots, box plots, and multi-layered visualizations. Gardener provides in-depth explanations of how to create these plots, but more importantly, he explains why certain types of visualizations are better suited for specific data. Gardener stresses that visualizations should be aesthetically pleasing and clearly communicate the key results. For example, in his discussion of scatter plots, Gardener emphasizes the importance of correctly labeling axes and ensuring that the results are immediately clear. These elements may seem minor, but they are details that can make a huge difference in how well your visualizations are understood by others. After reading Chapters 11 and 12, I felt more confident in my ability to create professional-looking visualizations that also convey the story behind the data. One of the strengths of this book is its ability to reach users with different skill levels. While the book covers foundational topics, it also offers more advanced chapters for readers looking to deepen their knowledge. For instance, topics on time series analysis, machine learning, and handling big data in R give readers a glimpse into techniques used in the field of data science. Although not explicitly mentioned in the detailed outline provided, Gardener introduces these advanced topics at an introductory level, so readers seeking more in-depth exploration may need additional resources. These topics are more complex, but Gardener's clear explanations make them accessible, even for those new to these areas. Despite its comprehensive coverage, the book never feels overwhelming. The step-by-step explanations, paired with practical exercises at the end of each chapter, help make even the more challenging topics approachable. These exercises are an integral part of the learning process, allowing readers to apply what they have learned to reinforce their understanding. The availability of datasets and solutions online also adds an interactive element to the learning experience. In conclusion, An Introduction to R: Data Analysis and Visualization by Mark Gardener is an excellent resource for anyone looking to learn R or improve their data analysis skills. Whether you are a novice R user or have some experience, the book offers valuable insights and practical examples that can be applied across a variety of fields. The combination of clear explanations, real-world applications, and thoughtful exercises makes this book a standout in a crowded field of programming guides. What I appreciated most about this book is that it teaches you more than how to use R; it teaches you how to think critically about data analysis. Readers will learn the importance of writing clean, efficient code and creating visualizations that effectively communicate findings—all essential skills for anyone working in a data-driven field.

Read the paper · More papers on PaperTik