Statistical Analysis with Excel For Dummies. Joseph Schmuller

Читать онлайн.
Название Statistical Analysis with Excel For Dummies
Автор произведения Joseph Schmuller
Жанр Программы
Серия
Издательство Программы
Год выпуска 0
isbn 9781119844563



Скачать книгу

I mention in the preceding section, the chart in Figure 3-1 is a column chart. It’s one of many types of charts you can create with Excel. Of all the graphics possibilities Excel provides, however, only a few are useful for statistical work. Those are the ones I cover in this chapter.

      In addition to the column chart, I show you how to create pie charts, bar charts, line charts, and scatterplots.

Snapshot of the Charts area of the Insert tab.

      FIGURE 3-2: The Charts area of the Insert tab.

      To insert a chart, follow these steps:

      1 Enter your data into a worksheet.

      2 Select the data that go into the chart.

      3 In the Charts area of the Insert tab, select Recommended Charts.The Insert Chart dialog box opens. This dialog box presents Excel’s best guesses for the kind of chart that captures your data. Choose one, and Excel creates a chart in the worksheet.

      4 Modify the chart.Click on the chart, and Excel adds a Chart Design contextual tab and a Format contextual tab to the Ribbon. These tabs allow you to make all kinds of changes to the chart. You can also double-click on a chart element (like an axis or a data point) to open a task pane on the right side of the screen. The task pane enables you to modify the element. If you keep the task pane open and click on another element, the task pane changes to accommodate the newly clicked element and the possible modifications you can make.

      It’s that simple. (Charts seem to get easier with each new version of Excel.) The next section shows what I mean.

By the way, here’s one more important concept about Excel graphics. In Excel, a chart is dynamic: After you create a chart, changing its worksheet data results in an immediate change in the chart.

      

In this example, and in all the ones to follow, Step 3 is always

      Insert | Recommended Charts

      You can, however, directly access a chart type without Excel’s recommendations. The Charts group on the Insert tab provides a button for each chart type. You can also access each chart from the All Charts tab in the Recommended Charts dialog box.

      In this section, I show you how to create the spiffy graph shown earlier, in Figure 3-1. Follow these steps:

      1 Enter your data into a worksheet.Figure 3-3 shows the data from Table 3-1 entered into a worksheet.FIGURE 3-3: Table 3-1 data, entered into a worksheet.

      2 Select the data that go into the chart.I selected A1:F7. The selection includes the labels for the axes but doesn’t include row 8, which holds the column totals.

      3 In the Charts area of the Insert tab, select Recommended Charts.Choosing Insert | Charts | Recommended Charts opens the Insert Chart dialog box, shown in Figure 3-4. I scrolled down the recommended charts in the left column and selected Excel’s fifth recommendation. (Apparently, Excel’s tastes are a bit different from mine — even in this edition! Perhaps in a future version, Excel and I will see eye to eye.) This type of chart is called Clustered Column. I click OK to put the chart in the worksheet.FIGURE 3-4: The Insert Chart dialog box.

      4 Modify the chart.Figure 3-5 shows the resulting chart as well as the Chart Design tab and the Format tab. These tabs combine to form Chart Tools. As you can see, I have to do some modifying. Why? Excel has guessed wrong about how I want to design the chart. It looks okay, but it will look better (to my eye) if I relocate the legend (the part below the x-axis that shows what all the colors mean). As Figure 3-1 shows, I prefer the legend on the right side of the chart.To make the modification, I double-click on the legend. This action opens the Format Legend pane. (See Figure 3-5.) I click the Top Right radio button to reposition the legend.

Snapshot of the Format Legend pane.

      FIGURE 3-5: The Format Legend pane.

      Some work remains. For some reason, Excel creates the chart without a line for the y-axis, and with a light gray line for the x-axis. Also, the axes aren’t labeled yet, and the graph has no title.

      FIGURE 3-6: The Format Axis pane, with Axis Options and Line selected.

Snapshot of the Chart Elements button, with Axis Titles selected.

      FIGURE 3-7: The Chart Elements button, with Axis Titles selected.

      Use the title text boxes to add the titles and finish off the chart to make it look like the chart in Figure 3-1.

      

To add elements to a chart, you can also use the Add Chart Elements button on the extreme left side of the Chart Design tab.

      For a quick way to add the chart title, just click the title in the chart and type a new title.

      

When you add a title (whether axis or chart), you can either select the title and start typing or highlight the title before you start typing. If you type without highlighting, the new title appears on the Formula bar and then in the title area after you press Enter. If you highlight before you type, the title appears in the title area as you type.