New York state was named after New York City which, in turn, was named after the Duke of York. There's no mention of the Duke of York in the Wikipedia article about New York state. This is an indirect naming, like how Livermorium is indirectly named after a person because it was named after Lawrence Livermore National Laboratory which, in turn, was named after Ernest Lawrence.