Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Parmer chriddyp

View GitHub Profile
View 2007gapminder.csv
Country Population Continent lifeExp gdpPercap
Afghanistan 31889923 Asia 43.828 974.5803384
Albania 3600523 Europe 76.423 5937.029526
Algeria 33333216 Africa 72.301 6223.367465
Angola 12420476 Africa 42.731 4797.231267
Argentina 40301927 Americas 75.32 12779.37964
Australia 20434176 Oceania 81.235 34435.36744
Austria 8199783 Europe 79.829 36126.4927
Bahrain 708573 Asia 75.635 29796.04834
Bangladesh 150448339 Asia 64.062 1391.253792
View Multiple Y-Axes and Mixed Types.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View NumPy_Boxes.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View test.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Plotly-knitr
See the source code here: https://gist.github.com/chriddyp/9038957
```{r}
library(plotly)
p = plotly('R-demos', 'p9g4f35ytd')
```
```{r}
#Load maps
library(maps)
View datetime precision.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gapminder.json
{"Canada": {"gdp": [1159.50292715829, 2546.13789091371, 2959.79870641974, 3495.50093330347, 4493.98721984539, 6113.15958361527, 4871.63337509545, 5504.54522330405, 5769.83889890842, 5771.37965527646, 6298.53066296895, 6526.04919532311, 7033.87491093352, 7504.91809609659, 7350.88483678572, 6981.06353821447, 5810.08736029736, 5327.94668262328, 4891.07325288913, 5356.35632655407, 5733.0766099088, 5984.97425685048, 6491.73355131635, 6596.94292130058, 6919.42729432661, 7790.3020467958, 8780.7657024414, 10206.7097713719, 10539.5858238456, 10800.5121111043, 10351.2137161471, 10058.4967968071, 10286.284821903, 10253.0724876694, 10251.2677302288, 10581.265520182, 10932.4667838283, 11367.1611248765, 11586.6145455354, 11173.2594978109, 11901.5094889284, 12555.5494657206, 12489.9500550468, 12384.4101756439, 12590.8003302521, 12701.4831222151, 12817.9221730302, 13462.4855497003, 13882.5626618103, 14510.8993322099, 15198.1100948448, 15884.8362384675, 16076.5880260325, 16658.2132823344, 17286.9932927392, 17487.4571266458, 1
View indicator life_expectancy_at_birth - Data.csv
life expectancy at birth 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999
View indicator gapminder gdp_per_capita_ppp - Data.csv
GDP per capita 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001