# Smooth contour plot data

**URL:** <https://community.exploratory.io/t/smooth-contour-plot-data/2871>\
**Category:** HowTo\
**Created:** [March 14, 2024, 8:06pm UTC](https://community.exploratory.io/t/smooth-contour-plot-data/2871 "2024-03-14T20:06:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rob\_Sherlock](https://community.exploratory.io/user_avatar/community.exploratory.io/rob_sherlock/32/1555_2.png) [@Rob\_Sherlock](https://community.exploratory.io/u/Rob_Sherlock)\
**Post date:** [March 14, 2024, 8:06pm UTC](https://community.exploratory.io/t/smooth-contour-plot-data/2871/1 "2024-03-14T20:06:24Z")

</div>

Hello! I’d like to smooth data in a contour plot. I think using a custom function when plotting the data is one way to do this. First I used the custom function to calculate the data means:  
mean(O2\_umol\_kg, na.rm=TRUE)  
That works, but:  
smooth(mean(O2\_umol\_kg, na.rm=TRUE))  
does _not_ work.

I’ve tried using ‘loess’ instead of ‘smooth’, but there’s something else I’m missing.Thanks for any suggestions!
