In a highly collaborative research and development project with mining and university partners, sensors and data-analysis tools are being developed for rock-mass characterization and real-time measurement of mineral content. Determining mineralogy prior to mucking in an open-pit mine is important for routing the material to the appropriate processing stream. A possible alternative to lab assay of dust and cuttings obtained from drill holes is continuous on-line sampling and real-time x-ray fluorescence (XRF) spectroscopy. Results presented demonstrate that statistical analyses combined with XRF data can be employed to identify minerals and, possibly, different rock types. The objective is to create a detailed three-dimensional mineralogical map in real time that would improve downstream process efficiency.