ui.Chart.image.doySeriesByRegion
Generates a Chart from an ImageCollection. Plots the derived value of the given band in different regions at each day-of-year.
- X-axis: Day of year (startDay to endDay, defaults to 1 to 366).
- Y-axis: Derived band value (reduced within the region and across years).
- Series: Regions.
Returns a chart.
Usage | Returns |
---|
ui.Chart.image.doySeriesByRegion(imageCollection, bandName, regions, regionReducer, scale, yearReducer, seriesProperty, startDay, endDay) | ui.Chart |
Argument | Type | Details |
---|
imageCollection | ImageCollection | The ImageCollection to chart. |
bandName | Number|String | The name of the band to chart. |
regions | Feature|FeatureCollection|Geometry|List | The regions to reduce. |
regionReducer | Reducer, optional | Reducer for aggregating band values within the region. Must return a single value. Defaults to ee.Reducer.mean(). |
scale | Number, optional | Scale to use with the region reducer in meters. |
yearReducer | Reducer, optional | Reducer for aggregating band values across years (for a given day of year). Must return a single value. Defaults to ee.Reducer.mean(). |
seriesProperty | String, optional | Property of features in opt_regions to be used for series labels. Defaults to 'system:index'. |
startDay | Number, optional | Day of year to start the series. Must be between 1 and 366. |
endDay | Number, optional | Day of year to end the series. Must be between startDay and 366. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Generates a chart that visualizes the temporal variation of a specific band's value within different regions throughout a year, derived from an ImageCollection."],["The chart displays the day of year on the x-axis, the derived band value on the y-axis, and uses separate series to represent different regions."],["Users can customize the chart by specifying the band, regions, aggregation methods (reducers) for both region and year, scale, series labels, and the start and end days of the year to be included."]]],["This function generates a chart from an ImageCollection, plotting band values across different regions and days of the year. It requires an `imageCollection`, `bandName`, and `regions`. It aggregates band values within regions using `regionReducer` and across years using `yearReducer`. The x-axis represents the day of the year (`startDay` to `endDay`), and the y-axis displays the reduced band value. Regions are represented as separate series, identified by `seriesProperty`. The function returns a `ui.Chart`.\n"]]