The package pca3d quickly generates 2D and 3D graphics of PCA. The focus is on showing how samples are assigned to different groups or categories. Furthermore, a 2D counterpart facilitates producing publication-quality figures.