A box plot displays summary statistics of a dataset, such as the median and quartiles, while a violin plot combines a box plot with a density plot to show the data distribution more comprehensively.