Hello all! I have a problem with my data in R. When I want to plot the following data, I have a problem with y scale. The maximum value is cc. 10 degrees and in R is about 100. I use this code: fasy<-read.table("gridd1.txt",sep="\t",dec=",",header=T,row.names=1) # here are the years: x <- as.numeric(rownames(fasy)) # extract a series that you want to plot: y <- fasy[,1] # remove the NA's from both: mask <- !is.na(y) x <- x[mask] y <- y[mask] plot(x,y,type="l")
Please help me to solve this problem. Thank you very much! And data: row.names medie 1 1901 8.125 2 1902 7.1333333 3 1903 8.60833325 4 1904 7.583333267 5 1905 8.258333333 6 1906 8.425 7 1907 7.241666667 8 1908 7.825 9 1909 8.016666575 10 1910 9.033333258 11 1911 8.158333333 12 1912 7.374999992 13 1913 8.4 14 1914 7.875000108 15 1915 8.366666767 16 1916 9.200000017 17 1917 8.08333325 18 1918 8.966666667 19 1919 7.891666675 20 1920 8.200000008 21 1921 8.375 22 1922 7.425000083 23 1923 9.041666833 24 1924 7.833333425 25 1925 9.224999975 26 1926 8.95 27 1927 8.616666583 28 1928 7.7083334 29 1929 7.291666575 30 1930 9.016666667 31 1931 7.833333333 32 1932 8.15833325 33 1933 6.558333167 34 1934 9.316666667 35 1935 7.725000108 36 1936 9.23333325 37 1937 8.63333325 38 1938 8.783333258 39 1939 8.908333342 40 1940 6.441666675 41 1941 7.216666708 42 1942 6.624999917 43 1943 8.325 44 1944 8.225 45 1945 7.950000083 46 1946 8.883333333 47 1947 7.975000008 48 1948 8.75 49 1949 8.799999908 50 1950 9 51 1951 9.325 52 1952 8.325 53 1953 8.033333342 54 1954 7.23333325 55 1955 7.983333433 56 1956 6.849999917 57 1957 8.6 58 1958 8.75833335 59 1959 8.183333333 60 1960 8.8333335 61 1961 8.749999925 62 1962 8.074999983 63 1963 7.60833325 64 1964 7.616666667 65 1965 7.20833325 66 1966 8.95833325 67 1967 8.658333333 68 1968 8.749999925 69 1969 7.150000167 70 1970 8.383333333 71 1971 8.408333342 72 1972 8.408333333 73 1973 8.233333333 74 1974 8.666666667 75 1975 9.374999992 76 1976 7.275 77 1977 8.633333333 78 1978 7.7 79 1979 8.6 80 1980 7.183333417 81 1981 8.43333325 82 1982 8.566666667 83 1983 9.3 84 1984 8.275000008 85 1985 7.141666658 86 1986 8.55833325 87 1987 7.4 88 1988 8.299999992 89 1989 9.824999975 90 1990 9.774999917 91 1991 8.25 92 1992 8.85 93 1993 8.125 94 1994 9.808333217 95 1995 8.558333333 96 1996 7.924999917 97 1997 8.091666583 98 1998 8.675 99 1999 9.591666667 100 2000 9.916666742 101 2001 9.058333325 102 2002 9.516666583 103 2003 8.616666583 104 2004 8.91666675 105 2005 8.741666667 106 2006 8.658333333 107 2007 10.35833333 108 2008 9.974999992 109 2009 9.9 -- --- Catalin-Constantin ROIBU Forestry engineer, PhD Forestry Faculty of Suceava Str. Universitatii no. 13, Suceava, 720229, Romania office phone +4 0230 52 29 78, ext. 531 mobile phone +4 0745 53 18 01 +4 0766 71 76 58 FAX: +4 0230 52 16 64 silvic.usv.ro [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.