Modified gravity is one of the potential candidates to explain the accelerated expansion of the universe. Current study highlights the materialization of anisotropic compact stars in the context of f (R, G) theory of gravity. In particular, to gain insight in the physical behavior of three stars namely, Her X 1, SAX J 1808-3658 and 4U 1820-30, energy density, and radial and tangential pressures are calculated. The f (R, G) gravity model is split into a Starobinsky like f (R) model and a power law f (G) model. The main feature of the work is a 3-dimensional graphical analysis in which, anisotropic measurements, energy conditions and stability attributes of these stars are discussed. It is shown that all three stars behave as usual for positive values of the f (G) model parameter n.