In ?theme, the information for legend.position states
the position of legends. ("left", "right", "bottom", "top", or two-element numeric vector)
The option "none" is missing from that list. The use of legend.position = "none" is documented in the examples, but it should be listed as an available option.