This version is available at https://strathprints.strath.ac.uk/19453/ Strathprints is designed to allow users to access the research output of the University of Strathclyde. Unless otherwise explicitly stated on the manuscript, Copyright © and Moral Rights for the papers on this site are retained by the individual authors and/or other copyright owners. Please check the manuscript for details of any other licences that may have been applied. You may not engage in further distribution of the material for any profitmaking activities or any commercial gain. You may freely distribute both the url (https://strathprints.strath.ac.uk/) and the content of this paper for research or private study, educational, or not-for-profit purposes without prior permission or charge.Any correspondence concerning this service should be sent to the A study of AlInGaN epilayers, grown by plasma-assisted molecular beam epitaxy, was performed using spatially resolved x-ray microanalysis and luminescence spectroscopy in order to investigate competition between the incorporation of In, Al, and Ga as a function of the growth temperature in the 565-660°C range and the nominal AlN mole fraction. The samples studied have AlN and InN mole fractions in the ranges of 4%-30% and 0%-16%, respectively. Composition measurements show the effect of decreasing temperature to be an increase in the incorporation of InN, accompanied by a small but discernible decrease in the ratio of GaN to AlN mole fractions. The incorporation of In is also shown to be significantly increased by decreasing the Al mole fraction. Optical emission peaks, observed by cathodoluminescence mapping and by photoluminescence, provide further information on the epilayer compositions as a function of substrate temperature, and the dependencies of peak energy and linewidth are plotted.