We address the connectivity of large-scale ad hoc cognitive radio networks. We show a necessary condition for the connectivity of the secondary network, which depends on the conditional average degree of secondary users. We also show the uniqueness of infinite connected components in the secondary network, which implies the occurrence of the phase transition phenomenon. We introduce the concept of connectivity region defined as the set of density pairs (the density of secondary users and the density of primary transmitters) under which the secondary network is connected. Using theories and techniques from continuum percolation, we analytically characterize the connectivity region of cognitive radio networks and reveal the tradeoff between proximity (the number of neighbors) and the occurrence of spectrum opportunity. Specifically, for the connectivity region, we find the critical density of secondary users which represents the minimum requirement of connectivity on proximity, and an upper bound for the critical density of primary transmitters which indicates the minimum requirement of connectivity on opportunity; to reveal the tradeoff between proximity and opportunity, we study the impacts of secondary users' transmission power on the connectivity region and the conditional average degree. Moreover, an inner bound for the connectivity region as well as an outer bound is provided.