R drawfuncdetail