Now you've really gone and thrown the poor CS into the deep end.You aren't going to learn about what you're asking in a CS program.
You need to clearer about what technology you're referring to. Resistors implies RTL because most technologies avoid them as much as possible because they take a lot of real estate. When you say transistors, do you mean BJTs or MOSFETs? It makes a difference.
In an IC, there aren't separate pieces of doped silicon next to each other. A process starts with an N or P type silicon wafer and regions of the opposite polarity are implanted or deposited. Many die are fabricated on the same silicon wafer and separated after test for packaging.
A cross section of more than an inverter is pretty much impossible. The way these devices are drawn, the N devices are grouped together and the P devices are grouped together (for CMOS). It's done that way to minimize the number of P regions that need to be separated from N regions.
