Robust dimensionality reduction for data visualization and latent structure recovery