twin and family studies are an important counterpart to the genomic revolution that has taken place since the sequencing of the human genome . although molecular genetic techniques , such as genome - wide association and sequencing , have the advantage of allowing us to identify individual genetic variants that are important for population variation in traits and diseases , twin and family studies have the advantage of taking into account all dna variation throughout the genome and the population , simply by using what we know about genetic relatedness within twin pairs of different zygosity .
one obvious contribution of twin and family studies to genetics in the postgenomic era has been in setting the benchmark for studies that aim to identify genetic variants that have a role in the inheritance of complex traits .
the gap between the population variance accounted for by the current catalog of variants and the variance we estimate to be accounted for by genetic effects has come to be known as 
the search for the sources of missing heritability has spawned scientific innovation and collaboration on a global scale .
the second great advantage of twin and family studies is that they give us insight into the other side of the etiology of complex traits and disorders that is completely invisible to dna microarrays and next - generation sequencing platforms : the action of the environment on variation at the population level . in the midst of the genomic revolution
, it is easy to forget that even under the optimistic premise that we will eventually identify every genetic variant that influences a complex trait , we will still only know half the story of its origin , because identifying the influential environments that account for the remaining variance is just as important .
this array of physical and psychosocial environmental exposures has been characterized as an  exposome ' that parallels the genome in its influence on complex traits . as with genetic variation ,
so , although we have not yet identified all the important elements of the exposome ( there are  missing environments ' as well as missing heritability ) , twin studies still allow us to explore the mass influence of environmental variation on the phenotype .
similar to early forays into molecular genetics , early twin studies were often victims of small sample sizes and limited technology .
however , the modern twin studies of recent decades often number in the thousands , or tens of thousands , of participants , and take advantage of advances in maximum likelihood structural equation modeling to fit sophisticated etiological models .
these studies have proved robust to methodological challenges and produce results that replicate consistently to identify important aspects of the joint action of genes and environments .
these analyses allow us to carve nature and nurture at the joints , suggesting targeted hypotheses for our studies of specific genetic and environmental variation .
one aspect of these large , population - based epidemiological samples that has remained unexplored is how geographical location can affect the influence of nature and nurture on a phenotype .
we aimed to address this question using geocoded data on 45 phenotypes collected at age 12 from 6759 twin pairs participating in the twins early development study ( teds ) .
however , making sense of the genetic and environmental etiology of childhood traits and disorders is a complex process that requires input from experts in a wide range of fields , so we sought an approach that could capitalize on this distributed expertise . here
we describe a novel twin modeling approach that incorporates spatial information , and the design of the space interactive visual analysis tool that allowed us to collaboratively explore the geocoded twin data , with contributions from geneticists , psychologists , statisticians , clinicians , geographers and teachers .
the uk office for national statistics contacted parents of all twins born in england and wales between 1994 and 1996 , and invited them to take part in a longitudinal investigation of genetic and environmental influences on behavior and cognition .
the vast majority ( over 12  000 families ) agreed to take part and have been followed over the first 16 years of life . to date
most have remained in england and wales , although a few have migrated to scotland or overseas . in keeping with the uk population ,
most ( 96% ) identify themselves as white british with english as their first language ; for this analysis , we included only these families , to avoid greater genetic heterogeneity in cities biasing our results .
ethical approval was provided by the institute of psychiatry ethics committee of king 's college london .
when the twins were 12 years of age , we carried out our broadest survey to date , using web - based testing , parent questionnaires and teacher reports to assess a wide range of cognitive abilities , behavioral ( and other ) traits , environments and academic achievement in 6759 reared - together twin pairs .
all 6759 pairs of twins were assigned geographical coordinates using the uk national postcode database .
as the uk postcodes are generally unique to a street or a small group of addresses , this gave us an accurate location to a sub - neighborhood scale .
we used maximum likelihood structural equation modeling of the twin data in openmx to calculate genetic and environmental contributions to a range of childhood phenotypes assessed at 12 years of age ( see table 1 ) , for a series of target locations across the united kingdom .
the locations were chosen to represent the local density of twin data , to provide a visual cue to the data available for the estimation of variance components in different areas . however
, to preserve anonymity , they do not correspond to the locations of individual twin pairs .
every family contributed to each calculation , but with a weight assigned according to spatial proximity to the target location ( figure 1 ) .
each twin pair 's contribution to the analysis was weighted by the inverse of their distance from the point of estimation :   where x represents the point of estimation , xi represents the location of a twin pair , d is the euclidean distance between x and xi , and p is the power parameter ( 0.5 for these analyses ) .
we applied the weights by calculating weighted covariance matrices for monozygotic and dizygotic twin pairs , and using these as an input for the structural equation twin model , iterating over the target locations .
supplementary figures 1 and 2 describe a series of simulations we carried out to test this approach using an artificial data set with known parameters .
following principles of human perception and interaction design , we developed a purpose - built visual analysis tool programmed in the processing visualization language to display and explore the output , as described in figure 2 .
this revealed patterns of geographical variation in genetic and environmental contributions to the childhood phenotypes .
the space visualization tool is available as supplementary software , loaded with the 45 teds phenotypes , from http://sgdp.iop.kcl.ac.uk/davis/teds/geocoding/ , where there is also a video demonstrating the visualization .
the software download includes an openmx script for the r statistical computing environment that demonstrates our approach to geographically sensitive twin models .
fitting further structural equation models can formally test these patterns for statistical significance . in the example
to do this , we used the continuous moderator twin model that allows the contribution of genetic and environmental variance components to vary as a function of a measured environment ( supplementary figure 5 ) .
testing the significance of the moderation term allows us to establish moderation of the genetic and environmental effects by the measured environment .
simulations suggest that our sample for this analysis ( the 5073 pairs of twins with matching phenotype data ) gives us 80% power to detect a moderation of the e - term of the size we observed . for more discussion of the continuous moderator model ,
, we test for the moderation of the variance components by local variance in household income , estimated by calculating the variance in household income from our population sample , weighted by geographical distance in the same way as our twin model .
the uk office for national statistics contacted parents of all twins born in england and wales between 1994 and 1996 , and invited them to take part in a longitudinal investigation of genetic and environmental influences on behavior and cognition .
the vast majority ( over 12  000 families ) agreed to take part and have been followed over the first 16 years of life . to date
most have remained in england and wales , although a few have migrated to scotland or overseas . in keeping with the uk population ,
most ( 96% ) identify themselves as white british with english as their first language ; for this analysis , we included only these families , to avoid greater genetic heterogeneity in cities biasing our results .
ethical approval was provided by the institute of psychiatry ethics committee of king 's college london .
when the twins were 12 years of age , we carried out our broadest survey to date , using web - based testing , parent questionnaires and teacher reports to assess a wide range of cognitive abilities , behavioral ( and other ) traits , environments and academic achievement in 6759 reared - together twin pairs .
all 6759 pairs of twins were assigned geographical coordinates using the uk national postcode database . as the uk postcodes are generally unique to a street or a small group of addresses , this gave us an accurate location to a sub - neighborhood scale .
we used maximum likelihood structural equation modeling of the twin data in openmx to calculate genetic and environmental contributions to a range of childhood phenotypes assessed at 12 years of age ( see table 1 ) , for a series of target locations across the united kingdom .
the locations were chosen to represent the local density of twin data , to provide a visual cue to the data available for the estimation of variance components in different areas .
however , to preserve anonymity , they do not correspond to the locations of individual twin pairs .
every family contributed to each calculation , but with a weight assigned according to spatial proximity to the target location ( figure 1 ) .
each twin pair 's contribution to the analysis was weighted by the inverse of their distance from the point of estimation :   where x represents the point of estimation , xi represents the location of a twin pair , d is the euclidean distance between x and xi , and p is the power parameter ( 0.5 for these analyses ) .
we applied the weights by calculating weighted covariance matrices for monozygotic and dizygotic twin pairs , and using these as an input for the structural equation twin model , iterating over the target locations .
supplementary figures 1 and 2 describe a series of simulations we carried out to test this approach using an artificial data set with known parameters . following principles of human perception and interaction design , we developed a purpose - built visual analysis tool programmed in the processing visualization language to display and explore the output , as described in figure 2 .
this revealed patterns of geographical variation in genetic and environmental contributions to the childhood phenotypes .
the space visualization tool is available as supplementary software , loaded with the 45 teds phenotypes , from http://sgdp.iop.kcl.ac.uk/davis/teds/geocoding/ , where there is also a video demonstrating the visualization .
the software download includes an openmx script for the r statistical computing environment that demonstrates our approach to geographically sensitive twin models .
fitting further structural equation models can formally test these patterns for statistical significance . in the example below , we explore the relationship between income inequality and classroom behavior . to do this , we used the continuous moderator twin model that allows the contribution of genetic and environmental variance components to vary as a function of a measured environment ( supplementary figure 5 ) . testing the significance of the moderation term
allows us to establish moderation of the genetic and environmental effects by the measured environment .
simulations suggest that our sample for this analysis ( the 5073 pairs of twins with matching phenotype data ) gives us 80% power to detect a moderation of the e - term of the size we observed . for more discussion of the continuous moderator model , see hanscombe et al . in our example
, we test for the moderation of the variance components by local variance in household income , estimated by calculating the variance in household income from our population sample , weighted by geographical distance in the same way as our twin model .
the main outcome of this study is the collection of interactive maps that highlight genetic and environmental hotspots for a wide range of psychiatrically relevant childhood phenotypes , available for full exploration at http://sgdp.iop.kcl.ac.uk / davis / teds / geocoding/. there are many research questions that may be addressed using visual analysis of these data , and we hope that looking at one example in detail here will encourage interest in the corresponding maps for components of the autism spectrum , attention - deficit hyperactivity disorder , mood , or cognitive abilities , such as reading , mathematics or general cognitive ability , for instance . a full list of the 45 phenotypes is provided in table 1 . as an example
, here we explore the relationship between income inequality , classroom behavior and educational outcomes in early adolescence .
a notable pattern in our plots of the geographical distribution of genetic and environmental influences is a trend towards greater environmental influence on classroom behavior variables and academic achievement in london , compared with the rest of the uk . we hypothesized that the metropolitan area has a greater juxtaposition of extremely rich and extremely deprived neighborhoods than in any other part of the country , and that local variability in household income during childhood could be contributing to the increased environmental influence in the london area . plotting the locally weighted variance in household income ( an index of regional income inequality ) side - by - side with the environmental influence on the total classroom behavior problems index , as in figure 3 , fits with this hypothesis , and figure 4 shows one plotted against the other .
supplementary figures 3 and 4 explore how likely it is that the pattern of results in figure 3 occurred by chance .
we observe the same pattern for teacher - rated narcissism and academic performance against national curriculum targets , indicators that have previously been associated with income inequality on both national and international scales .
of course , this correlation does not necessarily demonstrate causality , although plausible mechanisms linking these indicators have been suggested , both at the psychological level ( with inequality leading to status anxiety , narcissistic self - promotion , deterioration of classroom behavior and poor academic achievement ) , and at the neural level . using structural equation models ,
it is possible to fit environmental variables , such as local income inequality , as continuous moderators of the genetic and environmental parameters of the twin model .
fitting these models confirms a significant relationship between income inequality and the other measures ( see figure 4 , and supplementary figures 5 and 6 ) .
how should geographical variation in genetic and environmental effects be interpreted ? in some ways ,
geographical variation in environmental effects seems more straightforward ; finding an environmental hotspot simply suggests that environmental variation has more effect on the phenotype in that region .
however , in our example , local variation in household income seemed to moderate the non - shared environmental effect rather than the shared environmental effect . surely , local variation in household income is an environment shared by children growing up in the same family ?
one of the great strengths of the twin method is that it tells us at least as much about the environment as it does about genetics .
an early and surprising finding from modern , well - powered twin cohorts was that the same environments are often experienced differently by children growing up in the same family .
even environments that would intuitively be classed as shared environments end up making children in the same family different .
this is particularly easy to imagine with an environment such as local variation in household income ; in areas with high variation , it would be easier for children from the same family to make friends with peers from quite different backgrounds .
in fact , it is usually not possible to classify particular environments as either shared or non - shared , because it is likely that any one environment will have a mix of effects , some shared by members of the same family and some not .
geographical differences in genetic effects seem more difficult to interpret , because it is unlikely that there are large genetic differences between people living in different regions of the united kingdom
. however , we should remember that the map shows not genetic differences , but differences in the effect that dna variation has on a phenotype ; we are looking at environmental moderation of genetic effects .
regions with large genetic effects are regions where the environment allows genetic variation to express itself through the phenotype .
for example , imagine living next door to a field of wind - pollenated crops ; in this situation , genetic variants that increase or decrease the risk of hayfever will lead to more phenotypic variation in the population than in an area where no pollen is present ( where no one suffers from hayfever , irrespective of his or her genotype ) . in this way ,
presence of a strong genetic effect could in fact represent the presence of an environment that reveals relevant genetic variation ( or the absence of a masking environment ) .
we should note that in our model , the genetic and environmental parameters are not constrained to add up to one at any one location , so it is possible for a region to be both a genetic and an environmental hotspot at the same time . clearly , like any technique , our approach has limitations .
for example , one of the main purposes of this method is to nominate environments that interact with genetic and environmental influences on traits .
however , it will only be able to identify environments that are geographically distributed on a large scale .
such environments may include social environments , such as district - level health , education provision or the psychosocial stress of urban living , or physical environments , such as water or air pollution .
but many environments vary on much smaller scales ; noise from an airport or main road may have a discernable influence , but the effect of noisy neighbors will not be apparent on a map of this resolution . in some cases it may help to follow up the visualization with further statistical models where a specific environment is measured at a fine - grained level . in other cases , these small - scale environments may go undetected by our approach . in addition , the twin method , though useful , has idiosyncrasies .
for example , not all of the variance components are estimated with equal power ; the shared environment is particularly difficult to detect and the non - shared environmental term also encompasses measurement error ( although this seems unlikely to vary geographically ) .
more generally , as we saw earlier , the environmental terms are open to misinterpretation ; it is sometimes remarked that the twin method does not take into account epigenetic variation .
the truth is that the twin model does include epigenetic effects , but they ( at least effects that are not inherited cross - generation ) are included as environments , because the environment incorporates everything other than dna sequence .
in fact , this has fueled fascinating speculation that epigenetic variation may mediate long - term environmental effects on phenotypes .
again , it seems that epigenetic factors are unlikely to vary geographically unless they are mediating some environmental effect , so this will probably not impact our findings .
the first is that some of our measures comprise rating scales completed by class teachers .
where twins share a class , they will likely share a rater . where they do not share a class , they will not .
however , in our sample we do not find that monozygotic twins share a classroom any more often than dizygotic twins , and our data suggest no systematic regional effect on sharing .
the second characteristic is that teds is currently an adolescent sample , so the twins have had relatively little freedom to seek out geographical regions correlated with their genetic propensities .
this means that we are limited in our ability to explore the effects of gene 
environment correlation . tracking how individuals seek out new environments will be a fascinating topic for future waves of the study .
our demonstration that the genetic and environmental contributions to complex traits vary depending on where we live has implications for several fields .
for example , one plausible explanation of the missing heritability encountered by genome - wide association studies has been gene - by - environment interactions .
our findings suggest a new mechanism for the identification of relevant environments , where exposure to the environment correlates with geographical distribution .
our findings also imply that when we conduct studies to identify variants associated with complex traits , the area where the sample is recruited will influence the power of our analysis to detect the variants .
to take our earlier example , because the environment accounts for more of the variance in childhood behavior problems in london , this environmental variability will have a greater effect in masking the genetic associations in a sample recruited in london than it will in the rest of the united kingdom .
researchers have invested a great deal of effort in identifying endophenotypes that are more heritable than their trait of interest to maximize their chances of finding genetic associations .
our findings suggest that a similar principle applies to geographical location ; as well as considering the logistics of sample collection in recruiting participants for association studies , researchers may also benefit from considering the variability of relevant environments in their catchment area .
recruiting in areas where the trait of interest is more heritable is likely to improve power to detect the effects of individual genetic variants .
in addition , new analyses of genome - wide association data have been used to estimate the proportion of heritability captured by genotyping arrays .
our approach is likely to translate directly to this type of data , reproducing our twin study results using molecular genetic information .
for example , it is easy to imagine applications in which time - of - travel is used instead of euclidean distance , or even maps in which the axes represent conceptual dimensions rather than geographical ones .
recently , there has been growing interest in the potential of visualization to take advantage of the broad information bandwidth of the human visual system in integrating large amounts of scientific data and spotting patterns amongst complexity .
one particularly interesting aspect of this , that we believe will gain further ground in coming years , is the trend towards integrating visualization into the analytic process , instead of approaching it as a way to effectively communicate the outcome of a completed study . alongside this , there is increasing recognition of how principles of visual perception , human  machine interaction and design can help us to construct visual analysis tools in a way that complements the idiosyncrasies of the way we perceive the world .
just as with statistical analysis , there are principles that must be followed to produce a valid result . for example , one challenge we faced in designing our interactive map was choosing a color scale .
we opted for a two - color scale that diverges from the mid - range , because this highlights the extremes of the distribution of values , picking out the high and low points that were most interesting in our analysis .
the colors we chose were red and blue , avoiding red and green , because around 8% of men have a genetic mutation that makes it impossible for them to distinguish the two .
even so , color scales can be prone to optical illusions , such as simultaneous color contrast , in which the color we perceive is affected by the surrounding colors . to overcome this
, we anchored the color scale , displaying numeric values on mouseover while indicating the point 's position in the full distribution of values in a histogram to the left .
such challenges aside , new open - source initiatives such as the r project for statistical computing ( http://www.r-project.org/ ) and the processing visualization language ( http://www.processing.org/ ) mean that it is now possible to construct a purpose - made custom visual analysis tool as part of the analytic process , an undertaking that previously would often have required too great an investment of time and resources to be practical . embedding visualization into our analysis has been crucial to arrive at these insights and connections . by bringing together experts from many different disciplines in the pursuit of a common goal , it revealed patterns that merited further exploration . beyond advancing our understanding of how nature and nurture interact on a national scale in the origins of childhood traits ,
we predict that collaborative visualization will play an increasingly important role in the scientific community 's efforts to overcome the modern data deluge and arrive at an integrated understanding of complex systems .
 twin studies allow us to estimate the relative contributions of nature and nurture to human phenotypes by comparing the resemblance of identical and fraternal twins . variation in complex traits is a balance of genetic and environmental influences ; these influences are typically estimated at a population level . however 
 , what if the balance of nature and nurture varies depending on where we grow up ? here we use statistical and visual analysis of geocoded data from over 6700 families to show that genetic and environmental contributions to 45 childhood cognitive and behavioral phenotypes vary geographically in the united kingdom . 
 this has implications for detecting environmental exposures that may interact with the genetic influences on complex traits , and for the statistical power of samples recruited for genetic association studies . 
 more broadly , our experience demonstrates the potential for collaborative exploratory visualization to act as a lingua franca for large - scale interdisciplinary research . 