change variable using two jquery plug-ins

change variable using two jquery plug-ins

I am using jqPlot to plot two normal distribution graphs side by side on the same axis. The second graph is offset by a value that I want to change dynamically using a slider. How do I get the value from the jquery slider to a variable declared in jqPlot? I am completely new to this, so please could you explain fully how to achieve this.
Many thanks