• Skip to secondary menu
  • Skip to main content
  • Skip to primary sidebar
  • My Store
  • Glossary
  • Home
  • About Me
  • Contact Me

Statistics By Jim

Making statistics intuitive

  • Graphs
  • Basics
  • Hypothesis Testing
  • Regression
  • ANOVA
  • Probability
  • Time Series
  • Fun

Contour Plots: Using, Examples, and Interpreting

By Jim Frost 1 Comment

Use contour plots to display the relationship between two independent variables and a dependent variable. The graph shows values of the Z variable for combinations of the X and Y variables. The X and Y values are displayed along the X and Y-axes, while contour lines and bands represent the Z value. The contour lines connect combinations of the X and Y variables that produce equal values of Z.

Contour plot of food quality by heating time and temperature.Contour plots are particularly helpful when you need to identify combinations of X and Y that produce beneficial or required values of Z. The contour lines and bands make it easy to find combinations that yield the values you need.

Use a contour plot to assess the following features of your dataset:

  • Explore the relationship between three variables on a single chart.
  • View combinations of X and Y that produce desirable outcome values.

Contour plots require three continuous variables. To learn about other graphs, read my Guide to Data Types and How to Graph Them.

Example Contour Plot

For example, a biologist studies the effect of stream depth and canopy cover on fish biomass.

Contour plot that displays biomass by stream depth and canopy coverage.

A contour plot typically contains the following elements:

  • X and Y-axes denoting values of two continuous independent variables.
  • Colored bands representing ranges of the continuous dependent (Z) variable.
  • Contour lines connecting points that have the same dependent value.

For the fish biomass data, the contour plot indicates that the highest biomass occurs near depths of 30 inches and in areas with a canopy cover of 25 percent. The lowest biomass values occur in shallower streams where canopy cover does not appear relevant.

Learn more about the X and Y Axis.

Interpreting Contour Plots and Finding Combinations that Produce Good Outcomes

Use a contour plot to explore the relationship between three variables. These plots display two independent variables (X, Y) and one dependent variable (Z). Contour plots help identify combinations that yield beneficial outcome values. Look for the following:

  • Combinations of X and Y that produce minima or maxima.
  • Ridges of high values and valleys of low values.

Contour plots are similar to topographical maps because they display three characteristics using a two-dimensional display. Similarly, tighter spaced lines indicate that the dependent (Z) variable changes more quickly in association with changes in the X and Y variables.

Use contour plots in conjunction with regression analysis to statistically test the relationships between variables. Another form of contour plots displays the fitted relationships between variables in regression models. For an example of this capability using binary logistic regression, read my post about Statistical Analysis of the Republican Establishment Split.

Share this:

  • Tweet

Related

Filed Under: Graphs Tagged With: choosing analysis, data types, interpreting results

Reader Interactions

Comments

  1. Souvik Chakraborty says

    November 22, 2022 at 2:12 pm

    Use categorical variable to make a contour plot

    I am using a dataset where I have a Saturation deficit (6 categorical var.) and Week (4 categorical variables) to see the hatching success. Can you please help me to understand which way I should build the contour model

    Reply

Comments and Questions Cancel reply

Primary Sidebar

Meet Jim

I’ll help you intuitively understand statistics by focusing on concepts and using plain English so you can concentrate on understanding your results.

Read More...

Buy My Introduction to Statistics Book!

Cover of my Introduction to Statistics: An Intuitive Guide ebook.

Buy My Hypothesis Testing Book!

Cover image of my Hypothesis Testing: An Intuitive Guide ebook.

Buy My Regression Book!

Cover for my ebook, Regression Analysis: An Intuitive Guide for Using and Interpreting Linear Models.

Subscribe by Email

Enter your email address to receive notifications of new posts by email.

    I won't send you spam. Unsubscribe at any time.

    Follow Me

    • FacebookFacebook
    • RSS FeedRSS Feed
    • TwitterTwitter

    Top Posts

    • How to Interpret P-values and Coefficients in Regression Analysis
    • How To Interpret R-squared in Regression Analysis
    • Z-table
    • How to Find the P value: Process and Calculations
    • Multicollinearity in Regression Analysis: Problems, Detection, and Solutions
    • How to do t-Tests in Excel
    • F-table
    • The Monty Hall Problem: A Statistical Illusion
    • How to Interpret the F-test of Overall Significance in Regression Analysis
    • Understanding Interaction Effects in Statistics

    Recent Posts

    • Least Squares Regression: Definition, Formulas & Example
    • Sampling Frame: Definition & Examples
    • Probability Mass Function: Definition, Uses & Example
    • Using Scientific Notation
    • Selection Bias: Definition & Examples
    • ANCOVA: Uses, Assumptions & Example

    Recent Comments

    • Jim Frost on Beta Distribution: Uses, Parameters & Examples
    • Norman Abraham on Beta Distribution: Uses, Parameters & Examples
    • Morris on Validity in Research and Psychology: Types & Examples
    • Jim Frost on What are Robust Statistics?
    • Allan Fraser on What are Robust Statistics?

    Copyright © 2023 · Jim Frost · Privacy Policy