![]() Because nobody who reads the graph will associate -0.368 with the number -1/e, you might want to display the text string "-1/e" on the axis instead of -0.368. You can use the VALUES= option to specify a set of tick locations that include -0.368. The graph in the previous section has a minimum value at (x,y) = (1, -1/e) ≈ (1, -0.368). ![]() Sometimes you might want to highlight a specific value on a graph.įor example, you might want to indicate where a graph has a maximum, minimum, or inflection point. Notice that the Y axis has tick marks at the values that are specified by the VALUES= option. Yaxis grid values= (- 0.5 to 3 by 0.5 ) /* specify tick locations */ * create data for the graph of the function y = x*exp(x) */ data Function For example, the following call to PROC SGPLOT specifies that the ticks on the Y axis should be specified at the locations -0.5, 0, 0.5, 1. If you want to specify a set of evenly spaced values, you can use the ( start TO stop BY increment) syntax. You can use the VALUES= option on the XAXIS or YAXIS statement to specify a set of values at which to display ticks. Use the VALUES= option to specify tick locations The VALUES= option enables you to specify tick locations the VALUESDISPLAY= option enables you to specify text strings to display on an axis. You can accomplish these tasks by using options on the XAXIS and YAXIS statements. Specify custom labels for the ticks, including symbols such as π. ![]() Specify tick values that are not evenly spaced.Sometimes, however, you might want to specify a set of custom tick values for one or both axes. When you create a graph by using the SGPLOT procedure in SAS, usually the default tick locations are acceptable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |