A toilet should have some elbow room between it and another fixture or vanity. The NKBA's recommendation is at least 18 inches. Codes allow a minimum distance of 15 inches.