Incipient formation of an electron lattice in quantum wires