barplotRichness | R Documentation |
Makes a barplot of species richness
barplotRichness(
object,
byPark = F,
byYear = F,
byPoint = F,
byGuild = F,
includeNA = T,
colors = "dark green",
palette = "BuGn",
plot_title = NA,
scale = T,
labels = T,
output = "total",
plot = TRUE,
...
)
object |
An |
byPark |
Defaults to |
byYear |
Defaults to |
byPoint |
Defaults to |
byGuild |
Defaults to |
includeNA |
Defaults to |
colors |
One or more colors for the bars. |
palette |
Color pallete for the background of the graph. Defaults to "BuGn" (blue green) but will accept any RColorBrewer palette |
plot_title |
Optional, A title for the plot. |
scale |
If |
labels |
If |
output |
Either "total" (the default) or "list". Only used when |
plot |
Logical. Return plot |
... |
Additional arguments passed to |
This function produces a barplot of species richness by Park, Year or Point. It does this by using the
output of the birdRichness
function. The data is then passed on to ggplot2 for graphing. The user can chose to have byPark=T
,
byYear=T
or byPoint=T
, but should only pick one of the three. These can be combined with a guild category using byGuild
. The
includeNA
argument indicates if bird species that are not categorized for a particular guild shoud be included.
Colors:
Colors of the bars are controlled by either colors
or palette
argumnts. If the barplot is not by guild then the color indicated by
colors
will be used. If byGuild=T
then by default the palette
arguement will be used. However, the palette
arguement
can be overridden simply by giving colors
a vector of colors with one color for each guild category shown in the barplot.If
includeNA=T
than than the first color will correspond to the NA value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.