This is a complicated question.  They do affect one another, but not directly.  Generally. I (in line)is used on smaller engines while V shaped engines are larger ones that have to be built in a v shape to get them in the same engine room and generlly the larger capacity (displacement) engines have more power because of there increased size.  BUT there are so many other variables that these are very general guidelines.