collapsing a factor to see summarized levels of the other one (ANOVA?)


in 2-factor analysis, is it possible to "collapse" a factor in order to have a clear view of the effect of the levels of the other factor? Which numerical techniques are available for this purpose? (maybe a code snippet in R?). Is it possible with ANOVA?