Dear Stata users,

I am trying to use the marginsplot command, but I keep getting an error.

My code:
regress y d##c
margins, dydx(d) at(c=(3(1)15)) vsquish
marginsplot

Error:
marginsplot
1 is not a valid command name
r(199);

Does anyone know what is going on here?

Thanks a lot in advance!