Profile

Cover photo
Mark Gardener
Works at www.dataanalytics.org.uk
Attends Open University
Lives in Sutton, London, UK
273 followers|98,997 views
AboutPostsPhotosVideos

Stream

Mark Gardener

Shared publicly  - 
 
If you have column names as numbers R will prepend "X" to the column names
http://bit.ly/25WCV25

Change this using check.names = FALSE in the read.xxx() command when you import the data to #R #Stats
Home > Data Analysis > Tips and Tricks > R Tips. Tips and Tricks - for R and Excel. On these pages you can find tips, tricks and hints for using both R and Excel. At the end of each tip there are links forwards and backwards as appropriate. There is also an index of R tips and an index of Excel ...
1
Add a comment...

Mark Gardener

Shared publicly  - 
 
Some notes about boxplot() in #R and how to reorder the box-whisker plots:
http://dataanalytics.org.uk/Data%20Analysis/TipsAndTricks/TTR-20150923.htm

#RStats #Graphics
Home > Data Analysis > Tips and Tricks > R Tips. Tips and Tricks - for R and Excel. On these pages you can find tips, tricks and hints for using both R and Excel. At the end of each tip there are links forwards and backwards as appropriate. There is also an index of R tips and an index of Excel ...
1
Add a comment...

Mark Gardener

Shared publicly  - 
 
Using the expression() command in #R  to make complicated strings such as math formulae or superscript for axis labels etc.
Statistics for Ecologists Using R and Excel. Edition 2 is on the way. Statistics for Ecologists Using R and Excel: Data collection, exploration, analysis and presentation. Original Edition 1 Available now from. Pelagic Publishing · Pelagic Publishing. Get a 20% discount on "Statistics for ...
1
Add a comment...

Mark Gardener

Shared publicly  - 
 
Using colour in graphs:
http://www.dataanalytics.org.uk/Publications/Writers%20Bloc/ColourInCharts.htm

I'm working on a new edition of my book Statistics for Ecologists Using R and Excel and thought I'd add a few notes to the website...

Controlling and managing the colours you display is an importnat element in presenting your work. With an increasing volume of work being presented via the Internet, colour is something not to take for granted. Using default colours is "easy" but for maximum impact you should think carefully about how to present the best colours for the job.
Statistics for Ecologists Using R and Excel. Edition 2 is on the way. Statistics for Ecologists Using R and Excel: Data collection, exploration, analysis and presentation. Original Edition 1 Available now from. Pelagic Publishing · Pelagic Publishing. Get a 20% discount on "Statistics for ...
1
Add a comment...

Mark Gardener

Shared publicly  - 
 
Make a Tally plot in Excel..
http://bit.ly/1RKG7VO 

The Tally plot is a useful non-graphic representation of data distribution. Use #Excel  functions FREQUENCY and REPT to make a tally plot.

#statistics   #datascience  
Statistics for Ecologists Using R and Excel. Edition 2 is on the way. Home > Publications > Writer's Bloc > Visualizing data distribution: Make a Tally plot using Excel. Writer's Bloc. On this page you can find out about my latest writing project. I'll post updates on progress, ...
1
Add a comment...

Mark Gardener

Shared publicly  - 
 
I've just uploaded some #R  code for carrying out Polar Ordination http://bit.ly/1FarTWW 

Bray-Curtis ordination is rather out of fashion but useful for teaching. In my book Community Ecology http://bit.ly/1JHkAOt I demonstrate PO using #Excel  which is useful as it shows how ordination "works". However, it is tedious to do in a spreadsheet.

The #RStats  commands include print, summary and plot methods as well as an identify routine. I will add the routines to the main support file soon but meanwhile the code is available separately.

Share and enjoy.
1
Add a comment...

Mark Gardener

Shared publicly  - 
 
An interesting environmental solution to a potential problem #soil   #carbon   #farming   #ecology  
Carbon Nation, A climate change solutions movie that does not even care if you believe in climate change.
1
Add a comment...

Mark Gardener

Shared publicly  - 
 
A few notes about way to present the results of matched pairs stats tests graphically using #R or #Excel:
http://dataanalytics.org.uk/Publications/Writers%20Bloc/Matched%20Graphs.htm
Statistics for Ecologists Using R and Excel. Edition 2 is on the way. Statistics for Ecologists Using R and Excel: Data collection, exploration, analysis and presentation. Original Edition 1 Available now from. Pelagic Publishing · Pelagic Publishing. Get a 20% discount on "Statistics for ...
1
Add a comment...

Mark Gardener

Shared publicly  - 
 
Some notes about legends in #R  plots. There's a section on placing the legend in the plot margin.

A legend is a tool to help explain a graph. You are most commonly going to want to add one to a bar chart where you have several data series. You'll also want to add one to a line or scatter plot when you have more than one series. Essentially you use a legend to help make a complicated plot more understandable.

In R you can add a legend to any plot using the legend() command. You can also use the legend = TRUE parameter in the barplot() command. The barplot() command is the only general plot type that has a legend parameter (the others need a separate legend).

The legend() command has a host of parameters, which can be tweaked to produce the finished article. Generally the most difficult part is making room on the chart for the legend itself!
R: MonogRaphs. A series of essays on random topics using R: The Statistical Programming Language. R is a powerful and flexible beast. Getting started using R is not too difficult and you can learn to start using R in an afternoon. However, mastering R takes rather longer!
1
Add a comment...

Mark Gardener

Shared publicly  - 
 
I am working on a new edition of my book "Statistics for Ecologists", here are some thoughts on gridlines on graphs.
http://www.dataanalytics.org.uk/Publications/Writers%20Bloc/Gridlines.htm 

Including:
How to make gridlines visible on #excel  charts through the bars.
How to make gridlines on #R  plots hidden behind the bars.
Statistics for Ecologists Using R and Excel. Edition 2 is on the way. Statistics for Ecologists Using R and Excel: Data collection, exploration, analysis and presentation. Available now from. Pelagic Publishing · Pelagic Publishing. Get a 20% discount on "Statistics for Ecologists" when you buy ...
1
Add a comment...

Mark Gardener

Shared publicly  - 
 
Plotting two histograms on to a single #R  plot http://bit.ly/1LabIhF 

I was preparing some teaching material recently and wanted to show how two samples distributions overlapped. This meant I needed to work out how to plot two histograms on one axis and also to make the colors transparent, so that they could both be discerned.

For my teaching example I wanted to make some normally distributed data and show how the overlap changes as the means and variance of the samples alters. However, being able to plot two sample distributions on a single chart is a generally useful thing so I wrote some code to take two samples and do just that.

#R   #Data   
R: MonogRaphs. A series of essays on random topics using R: The Statistical Programming Language. R is a powerful and flexible beast. Getting started using R is not too difficult and you can learn to start using R in an afternoon. However, mastering R takes rather longer!
1
Add a comment...
 
The 3 Rs: Part 3 (arithmetic). Third in a series of monographs about R:
http://www.dataanalytics.org.uk/Data%20Analysis/R%20Monographs/Three-Rs-arithmetic.htm #Rstats   #R  
R: MonogRaphs. A series of essays on random topics using R: The Statistical Programming Language. R is a powerful and flexible beast. Getting started using R is not too difficult and you can learn to start using R in an afternoon. However, mastering R takes rather longer!
13
2
Add a comment...
Story
Tagline
Ecologist, Lecturer and Writer. Providing teaching and training in: Ecology, statistics, data analysis, and R: the statistical programming language
Education
  • Open University
    Science, 1993 - present
Basic Information
Gender
Male
Relationship
Married
Work
Occupation
Ecologist, Lecturer, Data Analyst and Author
Employment
  • www.dataanalytics.org.uk
    Ecologist/Lecturer, present
  • www.gardenersown.co.uk
    Ecologist/Lecturter, present
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Sutton, London, UK
Previously
Devon, Milton Keynes, Honolulu
Contact Information
Home
Email
Address
Sutton, London, UK