- Minitab Cookbook
- Isaac Newton
- 598字
- 2021-07-16 12:29:24
Creating a time series plot
Time series plots will generate a graph showing the values by their row number in the worksheet. As such, they will always generate a graph with an even distribution on the x axis.
In the following example, we will plot the mean maximum temperature that is recorded monthly at the Oxford weather station. As this data starts from 1853, we will subset this to all results from 2000 onwards.
Getting ready
We will use the data for the Oxford weather station in this example. This data is from the Met Office website and can be found at the following location:
http://www.metoffice.gov.uk/climate/uk/stationdata/
Select the Oxford station. The data is also made available in the Oxford data.txt
file, which preserves the format from the website. Also, the Oxford weather (Cleaned).MTW
Minitab file is correctly imported into Minitab for us.
When copying the data into Minitab, copy just the data starting at 1853. Then, paste it in the first row of the worksheet. After pasting the data, rename the columns.
For instructions on opening this data from a saved text file, see the Generating a paneled boxplot recipe.
How to do it…
The following instructions will create a time series plot of temperatures from the year 2000 to the end of the worksheet. We also stamp the year and month onto the x axis:
- Go to the Graph menu and select Time Series Plot….
- Choose the Simple time series plot.
- Enter the column for mean maximum temperature into the Series: section of the dialog box.
- Click on the Time/Scale… button.
- From the options, select Stamp and complete the dialog as shown in the following screenshot:
- Click on OK and select the Data Options… button.
- Make sure that the Specify which rows to Include option under Include or Exclude is selected.
- Then, select the Rows that match option and click on the Condition… button.
- In the Condition: section, enter the values as shown in the following screenshot:
- Click on OK thrice to create the chart.
How it works…
Time series plots display the results by row number. We should ensure that the data is in its correct time order before using a time series plot.
By selecting the scale and stamp button, it allows us to change the default time scale from the row number to year and month. The first column entered is at the top of the x axis and subsequent columns in the stamp section are placed below the previous columns. This shows only the relevant value in the year and month columns; it does not display the results in the date order if they are sorted differently.
Data options allows us to filter the data displayed on a graph. This option is available for all graphs created from the Graph menu. By setting the condition for the year to be greater than or equal to 2000, we display only the temperatures from 2000 onwards.
There's more…
When generating the time series plot for the data from the Met Office website or the saved text file, we notice that there are some missing points on the chart and in the worksheet. Check the data in the text that we copied; some of the results are indicated with *. These are provisional results. We would need to correct these manually in the worksheet or remove * from the original file.
The Oxford weather (cleaned).MTW
worksheet provides this data with the missing data points corrected.
See also
- The Adding a secondary axis to a time series plot recipe
- INSTANT Citrix XenDesktop 5 Starter
- 金融科技(FinTech)發(fā)展的國(guó)際經(jīng)驗(yàn)和中國(guó)政策取向(中國(guó)金融四十人論壇書(shū)系)
- 國(guó)家治理能力視角的國(guó)家審計(jì)功能理論研究
- 項(xiàng)目管理(第二版)
- Microsoft Dynamics CRM 2011 Scripting Cookbook
- 基本有用的計(jì)量經(jīng)濟(jì)學(xué)
- Getting Started with Citrix VDI-in-a-Box
- IBM SPSS Modeler Cookbook
- Programming Microsoft Dynamics NAV(Fifth Edition)
- 2017年度注冊(cè)會(huì)計(jì)師全國(guó)統(tǒng)一考試專(zhuān)用教材(圖解版):審計(jì)
- 中國(guó)審計(jì)市場(chǎng):制度變遷與競(jìng)爭(zhēng)行為
- 內(nèi)部審計(jì)情景案例:理解審計(jì)行為,辨析審計(jì)決策
- 計(jì)量經(jīng)濟(jì)學(xué)理論與應(yīng)用:基于Eviews的應(yīng)用分析
- 看穿一切數(shù)字的統(tǒng)計(jì)學(xué)
- 審計(jì)基礎(chǔ)與實(shí)務(wù)(第二版)