Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to plot detected points from the itc.wat function #1

Open
Atul997 opened this issue Mar 31, 2018 · 1 comment
Open

How to plot detected points from the itc.wat function #1

Atul997 opened this issue Mar 31, 2018 · 1 comment

Comments

@Atul997
Copy link

Atul997 commented Mar 31, 2018

Hi Adam,

I used the function itc.wat() to detect the trees in my raster file.
wat <- itc.wat(chm_smooth, res = 0.21, ht2rad=function(x) 0.15746*x, tolerance = 0.5, min.h = 2,silent = TRUE)
I got the results as-
trees crown.area
6835.00000 2.63135
How i can plot the results in my raster?

@admercs
Copy link
Owner

admercs commented Jul 13, 2018

I apologize for not seeing this earlier. You mean that you would like to plot two numbers atop your raster image? Since gapfraction loads the raster package, I would follow this method and use wat[1] and wat[2] for the values, as they are simply concatenated: https://rdrr.io/cran/raster/man/text.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants