Data set ‘plants.txt’ contains information for 5 species of plants. The variables are (in order): first name of the species, last name of the species, x value for that species, and y value for that species. Write a SAS macro that has at least three parameters: one positional parameter and two keyword parameters. The positional parameter should hold the name of a species, and the keyword parameters should hold the symbol value and color in the symbol statement for the PROC GPLOT. The macro should do the following:
- Create a new variable species, which is the first letter of the first name of the species and the first letter of the last name;
- Use PROC FREQ to obtain the frequency count for the species;
- Create a SAS data set containing only the observations for a particular species (determined by the value of the positional parameter)
- Use PROC GPLOT to plot y versus x for that particular species;
- Use a particular symbol value and color (determined by the keyword parameters) for the plot character;
- Include the name of the species in the title for the plot.
Write one main program which reads in the data file and calls the macro for species cb, symbol value = asterisk, and color = red. Only print out the GPLOT and the frequency count.