How to show a line like y=4 or x=2 on the sketch tool?

I can use function(“f”): simpleFunction(equationInput.latex, “x”) to show functions like y=x-4. However, it does not show a line for y=4 or x=-2. What can I do?

This should work:

function(`f`): simpleFunction(input.latex)
function(`g`): simpleFunction(input.latex,"y")

Then in your graph: