Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Plot combined historical and forecast data to visualize possible outcomes

`fanplot(historical,forecast)`

`fanplot(___,Name,Value)`

`h = fanplot(historical,forecast)`

`h = fanplot(___,Name,Value)`

`fanplot(`

generates
a fan chart. In time series analysis, a fan chart is a chart that
joins a simple line chart for observed past data with ranges for possible
values of future data. The historical data and possible future data
are joined with a line showing a central estimate or most likely value
for the future outcomes.`historical`

,`forecast`

)

`fanplot`

supports three plotting scenarios:

Matching — This scenario occurs when the time period perfectly matches for

`historical`

and`forecast`

data.Backtest — This scenario occurs when there are overlaps between

`historical`

and`forecast`

data.Gap — This scenario occurs when there are

`NaN`

values in the`historical`

or`forecast`

data.

`fanplot(___,`

generates
a fan chart using optional name-value pair arguments.`Name,Value`

)

generates
a fan chart and returns the figure handle `h`

= fanplot(`historical`

,`forecast`

)`h`

.
In time series analysis, a fan chart is a chart that joins a simple
line chart for observed past data with ranges for possible values
of future data. The historical data and possible future data are joined
with a line showing a central estimate or most likely value for the
future outcomes.

`fanplot`

supports three plotting scenarios:

Matching — This scenario occurs when the time period perfectly matches for

`historical`

and`forecast`

data.Backtest — This scenario occurs when there are overlaps between

`historical`

and`forecast`

data.Gap — This scenario occurs when there are

`NaN`

values in the`historical`

or`forecast`

data.

generates
a fan chart and returns the figure handle `h`

= fanplot(___,`Name,Value`

)`h`

using
optional name-value pair arguments.

`bolling`

| `candle`

| `ceil`

| `datetime`

| `highlow`

| `linebreak`

| `movavg`

| `pointfig`

| `priceandvol`

| `renko`

| `volarea`

Was this topic helpful?