File:Twin Study MZ discordant positive example.png
From Infogalactic: the planetary knowledge core
Size of this preview: 600 × 600 pixels. Other resolutions: 240 × 240 pixels | 750 × 750 pixels.
Original file (750 × 750 pixels, file size: 82 KB, MIME type: image/png)
Summary
- ====================
- = R code to create =
- ====================
library(ggplot2); library(MASS) set.seed(1000) cov = .5 myCovariance = matrix(nrow = 2, c(1, cov, cov, 1)); xy = MASS::mvrnorm (n = 100, mu = c(0,0), Sigma = myCovariance); xy = data.frame(xy); names(xy) <- c("x", "y"); p = qplot(x, y, data = xy, geom = c("point", "smooth"), method = "lm", xlab = "MZ difference on trait 1", ylab = "MZ difference on trait 2", main = "MZ discordant Design" ) p + annotate("text", x = 1.5, y = 2, label = "High on both") + annotate("text", x = -.5, y = -2., label = "Low on both traits")
- Save as pdf, convert to png
"Twin Study MZ discordant positive_example.png"
Licensing
Lua error in package.lua at line 80: module 'strict' not found.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 07:13, 15 January 2017 | 750 × 750 (82 KB) | 127.0.0.1 (talk) | <ol> <li> ====================</li> <li> = R code to create =</li> <li> ====================</li> </ol> <p>library(ggplot2); library(MASS) set.seed(1000) cov = .5 myCovariance = matrix(nrow = 2, c(1, cov, cov, 1)); xy = MASS::mvrnorm (n = 100, mu = c(0,0), Sigma = myCovariance); xy = data.frame(xy); names(xy) <- c("x", "y"); p = qplot(x, y, data = xy, geom = c("point", "smooth"), method = "lm", xlab = "MZ difference on trait 1", ylab = "MZ difference on trait 2", main = "MZ discordant Design" ) p + annotate("text", x = 1.5, y = 2, label = "High on both") + annotate("text", x = -.5, y = -2., label = "Low on both traits") </p> <ol><li> Save as pdf, convert to png</li></ol> "Twin Study MZ discordant positive_example.png" |
- You cannot overwrite this file.
File usage
The following page links to this file: