1.21 Graph Maker

Video Image.png Video Text Image.png

Summary

Origin provides a large selection of built-in templates for creating graphs quickly from your data. However, what if you want to interactively create a graph by assigning columns for plotting and attributes such as panels and colors in a flexible way. With this in mind we have created a Graph Maker app.

To open Graph Maker app, you can

  • select menu Plot: Graph Maker, or
  • click Graph Maker icon Graph Maker icon.png in the Apps Gallery.

Tutorial

  1. With a new workbook active, select menu Data: Connect to File: Test/CSV. Browse to Origin’s sample folder and select data file
     \Samples\Statistics\automobile_categorical.dat
    . Import with default settings.
    Graph Maker App 01.png

    Here is automobile data of numeric and categorical columns.

  2. Activate the worksheet and then select menu Plot: Graph Maker to launch the app's dialog box.
  3. In the Graph Maker app, plotting is as easy as dragging and dropping columns to the assigned variable. We will first select Power and drop it to Single Y, and Engine Displacement to X. In the preview panel on the right, Power is plotted as a function of Engine Displacement and there is a correlation between the two.
    Graph Maker App 02.png
  4. Now let’s assign other columns for splitting the data into panels. Drag Country to Panel > Vertical and Luxury to Horizontal.
    Graph Maker App 03.png
    The data has now been divided into multiple panels using Country as vertical and Luxury as horizontal.
  5. Now let’s quantify the correlation. Select Fitting checkbox. Several options are then available.
    • Leave the Polynomial Order as 1.
    • Turn on Confidence Bands and Prediction Bands.
    • Click on the icon Graph Maker App Fitting icon.png next to Fitting for further customizations. In the dialog that opens, select Person’s R as a label.
    Graph Maker App 09.png
    Now the graph is done.
  6. Save the graph as Window View so that you can dynamically resize the panels by simply dragging the graph to the desired aspect ratio. On the other hand, Page View is a fixed width.
    Graph Maker App 04.png
  7. Click OK to create the graph.
    Graph Maker App 05.png
  8. Let’s take a look at another example with the same data. With the workbook active, select menu Plot: Graph Maker to launch the app again. This time set as following:
    • Uncheck Single Y. Drag 0 – 60 mph and Gas Mileage to Y.
    • Change the plot type to bar chart by clicking the box chart icon Graph Maker Box Chart icon.png on the top, and then choose Bar Chart from the list. This plots the mean and deviation of the data.
    • Choose Country as the Vertical panel and Luxury as the Horizontal panel.
    Graph Maker App 06.png
    Now the graph is done. Click OK to create the graph.
  9. Let’s do one more example. With a new workbook active, select menu Data: Connect to Web. Enter following URL
     http://blog.originlab.com/wp-content/uploads/2023/01/Dose-Response.dat
    . Import with default settings.
    Graph Maker App 07.png

    This is dose response data with XY and error bar, and two different categories, inhibitor and no inhibitor.

  10. With the workbook active, select menu Plot: Graph Maker to launch the app again. This time set as following:
    • Drag Log Dose as X and Response as Y.
    • Drag Error to Y Error.
    • To distinguish between the inhibitor and non inhibitor, drag this inhibitor column and assign it to the Interior shape of the symbol. inhibitor is now plotted as closed symbol and no inhibitor is plotted as open symbol.
    Graph Maker App 08.png
    Click OK to create the graph.