There are a few places where we might use custom icons: adding fires, warning symbols, markers, etc. It is very difficult to create a legend with them in R. We should be able to create a function which will add a legend to a base R plot with whatever icons we want. If it proves too difficult to allow the user to include whatever icons they want, there could be just a few options for legends to add, so you would just specify the location of the legend and which type of legend (eg fires, monitors, outlook). I'm guessing this would be easier to do in ggplot but since most of our plotting uses base plotting functionality instead let's start with that.
A custom legend with custom icons would involve at least the following:
convert user coordinates into something more useful like inches or pixels
There are a few places where we might use custom icons: adding fires, warning symbols, markers, etc. It is very difficult to create a legend with them in R. We should be able to create a function which will add a legend to a base R plot with whatever icons we want. If it proves too difficult to allow the user to include whatever icons they want, there could be just a few options for legends to add, so you would just specify the location of the legend and which type of legend (eg fires, monitors, outlook). I'm guessing this would be easier to do in ggplot but since most of our plotting uses base plotting functionality instead let's start with that.
A custom legend with custom icons would involve at least the following: