You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When plotting the results of the mess analysis, the default behaviour uses a colour ramp that is difficult to interpret. Using the example from the docs, its impossible to see where 0 is, so we can't tell which areas are outside the range of the reference values:
As I understand it, the expected values range from maximum similarity at 100, down to 'minimum' similarity at 0, with negative values indicating increasingly 'dissimilar' values. We could use the col argument to plot.SpatRaster to produce more intuitive colors:
Those are not particularly ideal colours or intervals, but that seems better than the default.
This could be included in the example in the docs so users could set their own colours. Or perhaps it would be worth creating a class for mess output, such that a new plot method could be provided that would generate a nice colour scheme? If either of these sound useful I could put together a pull request.
tyler
The text was updated successfully, but these errors were encountered:
Thank you for the suggestions. I have added something similar to the example.
I do not want to create a new class. Instead I now plan to add support in "terra" for setting a "color table" with intervals to a SpatRaster such that the mess function could add a default legend to the output SpatRaster.
When plotting the results of the
mess
analysis, the default behaviour uses a colour ramp that is difficult to interpret. Using the example from the docs, its impossible to see where 0 is, so we can't tell which areas are outside the range of the reference values:As I understand it, the expected values range from maximum similarity at 100, down to 'minimum' similarity at 0, with negative values indicating increasingly 'dissimilar' values. We could use the
col
argument toplot.SpatRaster
to produce more intuitive colors:Those are not particularly ideal colours or intervals, but that seems better than the default.
This could be included in the example in the docs so users could set their own colours. Or perhaps it would be worth creating a class for
mess
output, such that a newplot
method could be provided that would generate a nice colour scheme? If either of these sound useful I could put together a pull request.The text was updated successfully, but these errors were encountered: