The R Project SVN R

Rev

Rev 46135 | Rev 47106 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 46135 Rev 46156
Line 957... Line 957...
957
 
957
 
958
    /* Specifies an offset outward from the plot for the axis.
958
    /* Specifies an offset outward from the plot for the axis.
959
     * The values in the par value "mgp" are interpreted
959
     * The values in the par value "mgp" are interpreted
960
     * relative to this value. */
960
     * relative to this value. */
961
    line = asReal(CAR(args));
961
    line = asReal(CAR(args));
962
    if (!R_FINITE(line)) {
-
 
963
	/* Except that here mgp values are not relative to themselves */
962
    /* defer processing until after in-line pars */
964
	line = gpptr(dd)->mgp[2];
-
 
965
	lineoff = line;
-
 
966
    }
-
 
967
    args = CDR(args);
963
    args = CDR(args);
968
 
964
 
969
    /* Optional argument: "pos" */
965
    /* Optional argument: "pos" */
970
    /* Specifies a user coordinate at which the axis should be drawn. */
966
    /* Specifies a user coordinate at which the axis should be drawn. */
971
    /* This overrides the value of "line".  Again the "mgp" par values */
967
    /* This overrides the value of "line".  Again the "mgp" par values */
972
    /* are interpreted relative to this value. */
968
    /* are interpreted relative to this value. */
973
 
969
 
974
    pos = asReal(CAR(args));
970
    pos = asReal(CAR(args));
975
    if (!R_FINITE(pos)) pos = NA_REAL; else lineoff = 0;
971
    /* defer processing until after in-line pars */
976
    args = CDR(args);
972
    args = CDR(args);
977
 
973
 
978
    /* Optional argument: "outer" */
974
    /* Optional argument: "outer" */
979
    /* Should the axis be drawn in the outer margin. */
975
    /* Should the axis be drawn in the outer margin. */
980
    /* This only affects the computation of axis_base. */
976
    /* This only affects the computation of axis_base. */
Line 1053... Line 1049...
1053
	logflag = dpptr(dd)->ylog;
1049
	logflag = dpptr(dd)->ylog;
1054
	nint = dpptr(dd)->lab[1];
1050
	nint = dpptr(dd)->lab[1];
1055
	break;
1051
	break;
1056
    }
1052
    }
1057
 
1053
 
-
 
1054
    /* Deferred processing */
-
 
1055
    if (!R_FINITE(line)) {
-
 
1056
	/* Except that here mgp values are not relative to themselves */
-
 
1057
	line = gpptr(dd)->mgp[2];
-
 
1058
	lineoff = line;
-
 
1059
    }
-
 
1060
    if (!R_FINITE(pos)) pos = NA_REAL; else lineoff = 0;
-
 
1061
 
1058
    /* Determine the tickmark positions.  Note that these may fall */
1062
    /* Determine the tickmark positions.  Note that these may fall */
1059
    /* outside the plot window. We will clip them in the code below. */
1063
    /* outside the plot window. We will clip them in the code below. */
1060
 
1064
 
1061
    create_at = isNull(at);
1065
    create_at = isNull(at);
1062
    if (create_at) {
1066
    if (create_at) {