Finally got around to spending some time with this, and found my map to sin:
int inInt = map(var_x, in_min, in_max, 0, 6283);
float outFloat = inInt/1000;
mappedSinVar = sin(outFloat) * range + offset;
It's modified from SparkFuns pulse led tutorial.
If you go there, it will explain the range and offset.