myddt | R Documentation |
Creates a ggplot of the fish SPECIES, length vs weight, coloured by river. Saves the data, filtered to a specific species, to the working directory. Creates a list with three attributes:
myddt(df, SPECIES)
df |
- the data frame. This should be ddt. |
SPECIES |
- the species of fish to filter for. |
the data frame passed to the function (the 'df' parameter).
the data frame filtered by 'SPECIES'.
a frequency table of 'RIVER's for the given 'SPECIES'.
A LENGTH vs WEIGHT plot and a named list with the pre- and post-filtering data frame as well as a frequency table of rivers.
## Not run: myddt(df=ddt, SPECIES="CCATFISH")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.