sysuse auto.dta,clear correlate price mpg weight length matrix corrmatrix = r(C) //ssc install heatplot heatplot corrmatrix heatplot corrmatrix, values(format(%4.3f)) heatplot corrmatrix, values(format(%4.3f) size(medium)) heatplot corrmatrix, values(format(%4.3f) size(medium)) legend(off) heatplot corrmatrix, values(format(%4.3f) size(medium)) legend(off) color(hcl, diverging intensity(.7)) heatplot corrmatrix, values(format(%4.3f) size(medium)) legend(off) color(hcl, gscale diverging intensity(.7)) heatplot corrmatrix, values(format(%4.3f) size(medium)) legend(off) color(hcl, gscale diverging intensity(.7)) aspectratio(1) heatplot corrmatrix, values(format(%4.3f) size(medium)) legend(off) color(hcl, gscale diverging intensity(.7)) aspectratio(1) xlabel(,labsize(small) angle(45)) heatplot corrmatrix, values(format(%4.3f) size(medium)) legend(off) color(hcl, gscale diverging intensity(.7)) aspectratio(1) xlabel(,labsize(small) angle(45)) ylabel(,labsize(small)) graph save "heatmap.gph",replace