I would like to do a Mann-kendall trend test using R.

The packages I used are Kendall and trend.

I studied find p-value and sen’s slope value.

I have measurements 4 times a year from 2010 to 2022, but I don’t know how to write an Excel file if I try to show it on the x-axis.

Currently, I have written the data to be used for the x-axis like 2010.04, 2010.08 I would appreciate it if you could tell me how to represent the x-axis that combines the year and month.

An Excel file consists of two columns: a date and a measured value.

Additionally, I would like to create a graph like the attached picture. I would appreciate it if the code could be written.(want using ggplot package if you know )

picture from : Using ggplot to Summarize Mann Kendall test results in a graph

New contributor

이동휘 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.