'통계/SAS'에 해당되는 글 3건

  1. 2014.11.05 SAS gplot
  2. 2014.11.05 SAS goptions
  3. 2014.11.05 SAS color chart

SAS gplot

2014. 11. 5. 20:50 from 통계/SAS

http://blog.naver.com/wjddudwo209/220125459139


2. 그림 그리기

 

  1) proc gplot



PROC GPLOT DATA= 데이터셋이름 ;​

PLOT X*Y=C ;

run; quit;​

(C에는 숫자를 넣어준다. 1은 별표, 2는 동그라미 3은 .. 이런식으로 숫자를 넣어 점의 모양을 정한다.) ​



 



 

  /option(s)

LEGEND=LEGENDn : 산점도와 함께 출력될 범례 지정
OVERLAY : 여러개 그림을 겹쳐 그림
HREF or VREF = values : 수직(수평)참조선
LH(LHREF) LV(LVREF) = line type 수직(수평)보조선을 그리는 선종류 지정
HAXIS or VAXIS = a to b by c : 수평(수직)축 기준점 지정(축의 tick을 a에서 b까지 c의
간격으로 그림)
= AXISn n번째의 AXIS로 정의된 축의 모양을 사용한다.
NOAXIS(NOAXES): 좌표축을 그리지 않음
NOLEGEND : 범례 없앰
FRAME : plot을 상자 안에 그림
- SAS/GRAPH에서 사용되는 옵션들 중 SYMBOL 문
: GPLOT 절차에서 기호, 선, 색상 및 평활방법들을 정의하는 데 사용
SYMBOLn options;
options
SAS command 설명
I = options
(보간법)
NONE 산점도

 

JOIN 직선으로 연결
NEEDLE 수평축과 점들을 바늘 모양으로 연결
SPLINE spline법
V = symbol | NONE 관측값을 나타낼 기호를 지정 (0-9 , A-Z , 특수부호의 이름)
C = symbol-color 점과 연결선의 색 지정
CI = line-color 연결선의 색 지정
CV = value-color 점의 색 지정
H = height 출력 기호의 크기 (단위 pct, cm, in)
L = line-type 연결선의 종류지정(1에서 46까지 가능, 1: 실선, 2: 점선)
WIDTH = width 연결선의 굵기 지정 (default=1)


  2) proc sgplot  (9.1 버전에서는 안됨)


gplot 과 비슷한 것.


PROC SGPLOT DATA= 데이터셋이름;

SCATTER X=variable Y=variable </options>;
XAXIS <options>;
YAXIS <options>;
RUN;

  /option(s) 

/markerattrs = (color =기호);

이 기호에 알맞은 문자를 넣음으로 점의 색을 바꿀 수 있다.

 

 



 

 

 

색깔에 관련된 기호! Abbreviation에 해당하는 것을 기호 에 넣으면 된다.

 

/markerattrs = (color =기호);

 

또 다른 예제 코드)


PROC SGPLOT DATA=table_intro_1;
TITLE1 BOLD "TableI_1" /* 제목 */
SCATTER x=gdp y=pce;
XAXIS LABEL="GDP" ;
YAXIS LABEL="PCE";
FOOTNOTE1 JUSTIFY=LEFT 'date: 1960 ~ 2005';
RUN;


'통계 > SAS' 카테고리의 다른 글

SAS goptions  (0) 2014.11.05
SAS color chart  (0) 2014.11.05
Posted by Azel.Kim :

SAS goptions

2014. 11. 5. 20:48 from 통계/SAS

VALUE=special-symbol | text-string | SPECIAL | NONE

specifies a plot symbol for the data points (GPLOT and GBARLINE).

  • If you omit the SYMBOL statement, plot points are generated using the default plot symbols. If you specify a SYMBOL statement, but do not specify the VALUE= option, the plot symbols are suppressed.
  • specifies contour-label text in a contour plot (GCONTOUR). By default with the AUTOLABEL option, GCONTOUR labels contour lines with the contour variable's value at that contour level.
  • VALUE=SPECIAL enables you to define unique special symbols for up to 12 plots (GPLOT) in one SYMBOL statement. Some of the symbols include the following: CIRCLE, DIAMOND, DIAMONDFILLED, DOT, HASH, PAW, POINT, PLUS, SQUARE, SQUAREFILLED, STAR, TRIANGLE, TRIANGLEFILLED, X, Y, and Z. See Special Symbols for Plotting Data Points for the complete list. This option is useful when the number of plots in your graph is variable. Rather than writing a SYMBOL statement for each possible plot, you can use VALUE=SPECIAL in one SYMBOL statement to define symbols for up to 12 individual plots.
  • VALUE=NONE suppresses plot symbols at the data points, or labels on the contour lines. You can set the VALUE=NONE option independent of the INTERPOL= option.
Values for special-symbol are the names and characters shown in Special Symbols for Plotting Data Points. The special symbol table can be used only if the FONT= option is not used or a null value is specified:
font=,
This means that you cannot use VALUE=special-symbol or VALUE=SPECIAL if you are using the FONT= option.
Special Symbols for Plotting Data Points
Special Symbols for Plotting Data Points
Note: The words or special characters in the VALUE= column are entered exactly as shown.

To specify a single quotation mark, you must enclose it in double quotation marks:

value="'"

To specify a double quotation mark, you must enclose it in single quotation marks:

value='"'

In some operating environments, punctuation characters might require single quotation marks.

If you use VALUE=text-string to specify a plot symbol, you must also use the FONT= option to specify a symbol font or a text font. If you specify a symbol font, the characters in the string are character codes for the symbols in the font. If you specify a text font, the characters in the string are displayed. If you specify a text string containing quotation marks or blanks, enclose the string in single quotation marks.

For example, if you specify this statement, the plot symbol is the word "plus" instead of the symbol +:

symbol font=swiss value=plus;

Java and ActiveX support the following characters from the Marker Font for special-symbol and SPECIAL:

Marker-font Symbols Supported by Java and ActiveX
Character
Aliases
Marker
Cone, Pyramid, Default
Square
Cube
Star
Circle
Sphere, Dot, Balloon
Plus
Cross
Flag
Y
X
Prism
Z
Spade
Heart
#
Diamond
$
Club
%
Hexagon
Paw
Cylinder
Hash
Note: If you do not use a SYMBOL statement to specify a color for each symbol, but you do specify a color list in a GOPTIONS statement, then Java and ActiveX assign colors to symbols differently than do the other device drivers. To ensure consistency on all devices, for VALUE=special-symbol or VALUE=text-string, you should specify the desired color of each symbol. If you do not specify a symbol color, SAS/GRAPH uses the first default color and the first symbol. It uses each color in the list of default colors until the list is exhausted. SAS/GRAPH then selects the next symbol and begins again with the first default color. It rotates the new symbol through the list of default colors before selecting another symbol. It continues selecting new symbols and colors until no more symbols are needed.

For VALUE=SPECIAL, the way in which symbols and their colors are assigned is different from VALUE=special-symbol and VALUE=text-string. For VALUE=SPECIAL, when generating symbols for a plot, rather than rotating each symbol through the list of colors, SAS/GRAPH rotates through the 12 special symbols and assigns each symbol a color from the color list. The symbols and the symbol colors that are used in a plot depend on the following:

  • whether a symbol color is specified in the SYMBOL statement or in the GOPTIONS statement
  • the number of colors in the color list when a symbol color is not specified
AliasV=
RestrictionPartially supported by Java and ActiveX
NotesFor ActiveX output, the VALUE= option is not supported when INTERPOL=HILO or INTERPOL=STD. You can use the OVERLAY option with GPLOT to get symbols to appear on the data points.
The VALUE option overrides the MarkerSymbol attribute in graph styles.
SeeSymbol Sequences Generated from SYMBOL Statements
FONT=font | NONE
Specifying Plot Symbols
About Special Fonts and Symbols in JAVA for a description of the special symbols that the Java devices support and the value that you must specify in the SYMBOL statement VALUE= option for each.
About Special Fonts and Symbols in ACTIVEX for a description of the special symbols that the ActiveX devices support and the value that you must specify in the SYMBOL statement VALUE= option for each.
Rotating Plot Symbols through the Color List

Creating and Modifying Box Plots

Labeling Contour Lines, Modifying the Horizontal Axis, Modifying the Legend

WIDTH=thickness-factor

specifies the thickness of interpolated lines (GPLOT) or contour lines (GCONTOUR). thickness-factor is a number. The thickness of the line increases directly with thickness-factor. By default, WIDTH=1.

WIDTH= also affects all the lines in box plots (INTERPOL=BOX), high-low plots with bars (INTERPOL=HILOB), and standard deviation plots (INTERPOL=STD). It also affects the outlines of the area generated by the AREAS= option in the PLOT statement of the GPLOT procedure.

AliasW=
Style reference LineThickness attribute of the GraphAxisLines element
RestrictionPartially supported by Java and ActiveX
NotesBy default, the value specified by WIDTH= is used as the default value for the BWIDTH= option. For example, specifying WIDTH=6 also sets BWIDTH= to 6 unless you explicitly assign a value to the BWIDTH= option.
Java and ActiveX do not provide the same measure of control for width as the other SAS/GRAPH device drivers. Measurements are translated to pixels rather than a percentage. For the JAVA, JAVAIMG, ACTIVEX, and ACTXIMG devices, the maximum width is 6.
Ordering Axis Tick Marks with SAS Date Values

Creating and Modifying Box Plots


'통계 > SAS' 카테고리의 다른 글

SAS gplot  (0) 2014.11.05
SAS color chart  (0) 2014.11.05
Posted by Azel.Kim :

SAS color chart

2014. 11. 5. 20:18 from 통계/SAS

Introduction

In Version 6, SAS/Graph includes predefined names for 290 different colors. Additional predefined color names became available for over 100 colors for SAS/Graph output in Version 9. These are the HTML color names listed in the SAS Registry. Together the list of predefined colors give you over 400 colors to choose from. See the "Predefined Colornames" section of this document for the names of the available pre-defined colors.

In any of these releases of the SAS system, you can also define your own colors in SAS/Graph using one of the color-naming schemes. The color-naming schemes are documented in the "SAS/Graph Software Reference" section of the OnlineDoc, under "SAS/Graph Colors". This document focuses on two of those schemes, gray-scale and RGB.

Using the gray-scale color-naming system, it is possible to define 256 different shades of gray ranging from pure black to pure white. With the RGB color-naming system, it is possible to define over 16 million colors. Both color-naming schemes in SAS use hexadecimal notation to define the colors.

Understanding Hex Values

In everyday life we typically use numbers from the base 10 system, where values range from 0 to 9 before an additional digit is needed. In a hexadecimal numbering system, each digit can represent 16 values, typically represented as 0 through 9 and then A through F, as shown in the following table.

Base 10

Base 16 (Hexadecimal)

0

0

1

1

2

2

3

3

4

4

5

5

6

6

7

7

8

8

9

9

10

A

11

B

12

C

13

D

14

E

15

F

In the base 10 system, a two-digit number can represent 100 values ranging from 0 through 99. In the base 16 system, a two digit number can represent 256 values, ranging from 00 through FF. A six-digit number in the base 10 system represents 106 (10 x 10 x 10 x 10 x 10 x 10) values, or 1,000,000 numbers. A six-digit number in the hexadecimal system represents 166 (16 x 16 x 16 x 16 x 16 x 16) values, or 16,777,215 numbers.

Methods for manipulating numbers, such as addition, subtraction, and multiplication, work the same in both systems; it is the representation of the value that is different. For example, each of these equations represents the same values:

Base 10

Base 16

9 + 1 = 10

9 + 1 = A

8 + 8 = 16

8 + 8 = 10

3 x 85 = 255

3 x 55 = FF

When using the hexadecimal system to define you own colors, the exact value for the color is not as significant as the relationship of the digits in the value to each other, and the relationship of the value of this color to other colors.

The Gray-Scale Color-Naming Scheme

The gray-scale color naming scheme uses a two digit hex value to define up to 256 shades of gray. In SAS, the root word GRAY is used to distinguish this naming system from the other color-naming systems. For example, GRAY00 is black, GRAYFF is white, and GRAY88 is a medium gray.

The following chart displays all 256 Gray-scale colors.

Gray-Scale Colors


To define the Gray-scale colors using this chart, build the names as follows:

"GRAY" || FIRST DIGIT || SECOND DIGIT

For example, the last square on the bottom right represents the value GRAY0F, a very dark gray. The square on the top of the left vertical axis represents the value GRAYF0, a very light gray.

The RGB Color-Naming System

The RGB color system is commonly used in both web graphics and web documents. This system is was designed to define colors as the human eye perceives them, as light. The three foundation or primary colors of this system are red, green, and blue.

The color system is additive: varying values for red, green, and blue can be combined to form the other colors. Because the system is based upon the properties of light, an absence of all color is black and full saturation in all colors is white. Each secondary color is the sum of two primary colors:

  • Red + Blue = Purple
  • Red + Green = Yellow
  • Green + Blue = Cyan

The SAS RGB color-naming scheme is similar to the standard HTML color-naming scheme. Both use a six-digit hexadecimal value to represent the amount of red, green, and blue that define the color. The first pair of digits represents the amount of red in the color; the second pair of digits is for blue, and the third is for green. In SAS, the color names must also be preceded by the letters "CX" to distinguish this color-naming system from other SAS color-naming systems. The general form of the names in SAS is as follows:

"CX" || RED RED || GREEN GREEN || BLUE BLUE

This system allows for the creation of over 16 million different colors. All 256 grayscale colors are included in this color system.

Listing the RGB Colors

Because the RGB system defines over 16 million colors, it would take many pages to display them all. It is also difficult to distinguish colors that have very similar values.

A good reference for a broad range of colors are the 216 colors commonly used on the web. These 216 colors form what is known as the "web-safe" or "non-dithering" color palette. They were traditionally used to prevent color-mapping or dithering of images when the majority of computer displays only supported 256 colors. Although most displays today are capable of representing millions of colors, this palette still remains popular.

The only digits used in web-safe colors are 0, 3, 6, 9, C, and F. As you can see in the chart, the convention is for the values of red, green, and blue to use the same value for both digits.

The 216-Websafe Colors

By varying the amounts of red, green, and blue in a given value, you can begin to define your own colors. Remember that the names must be preceded by the letters "CX" in order to identify the value as an RGB color in SAS.

Converting Color Values from Other Software Programs

Many software programs that allow you to edit their own colors can display the RGB values for that color. In these programs the RGB colors are usually represented as three base-10 values ranging from 0 to 255. For example, the following screen-shots show the RGB values for a particular shade of blue as displayed by two different software programs:

To match RGB colors in your SAS output to RGB colors from another software program, you can translate the decimal values to hexadecimal representation using a SAS program. For example, the following program converts the color blue above from the base 10 representation to hexadecimal values that can be used to represent the RGB color in SAS.


 data _null_;
/* Input values */
 red=42;
 green=31;
 blue=170;
/* Convert to hex */
 hexred=put(red,hex2.);
 hexgreen=put(green,hex2.);
 hexblue=put(blue,hex2.);
/* Create as a SAS RGB color */
 sasrgb="CX"||hexred||hexgreen||hexblue;
/* Write the new value to the Log */
 put sasrgb;
run;

For this shade of blue, the SAS RGB color is CX2A1FAA.

Predefined Colornames

In SAS 6, 290 different colors were available by their predefined names, such as RED, ORANGE, and VIGB ("vivid greenish blue"). In SAS 8.2, 140 predefined colors were added that could be used with non-graphical output. In Version 9.0, you can specify these HTML colors for SAS/Graph output. These colors, such as BlanchedAlmond and SeaShell, are listed in the SAS Registry under the key "COLORNAMES\HTML". The RGB values for the colors are displayed next to each name.

The following table shows the SAS/Graph color names and the HTML color names. The presence of a Description indicates the color is one of the SAS/Graph colors. RGB and HLS colors are shown for both types of colors. The color should be referenced by its name, RGB, or HLS value. Names do not contain spaces, so they do not need to be specified in quotes. Colors listed by both schemes, such as BLACK and YELLOW, are represented only once in the table.

NameRGB ValueHLS ValueSampleDescription
BLACKCX000000H0000000Black
NavyCX000080H00040FF 
DarkBlueCX00008BH00046FF 
MediumBlueCX0000CDH00067FF 
BLUECX0000FFH00080FFBlue
DarkGreenCX006400H0EF32FF 
GreenCX008000H0EF40FF 
TealCX008080H12C40FF 
DarkCyanCX008B8BH12C46FF 
DeepSkyBlueCX00BFFFH13980FF 
DarkTurquoiseCX00CED1H12C69FF 
MediumSpringGreenCX00FA9AH1157DFF 
GREENCX00FF00H0F080FFGreen
SpringGreenCX00FF7FH10D80FF 
CYANCX00FFFFH12C80FFCyan
BRBLCX010101H0980101Brownish black
VIBCX090766H00136DFVivid blue
VDEYGCX0A260EH0F81894Very deep yellowish green
DEBCX100F26H0011B6DDeep blue
VIGCX118044H10C48C3Vivid green
VDAGBCX121519H14E162DVery dark greenish blue
VDAGCX121915H10C162DVery dark green
VDABGCX121919H12A162DVery dark bluish green
VIGBCX13478CH14E4FC3Vivid greenish blue
VIBGCX138C89H12A4FC3Vivid bluish green
DEGBCX142233H14E246DDeep greenish blue
DEGCX143322H10C246DDeep green
DEBGCX143332H12A246DDeep bluish green
DAPBCX151219H017162DDark purplish blue
DEOLGCX15260DH0DD1980Deep olive green
DAVCX161219H022162DDark violet
DAOLCX161911H0CB1533Dark olive
VIYGCX16A629H0F85EC3Vivid yellowish green
VDEPCX170819H034117FVery deep purple
BLBCX171719H001180DBlackish blue
BLGCX171918H10C180DBlackish green
VDAYGCX172118H0F81C2DVery dark yellowish green
DEPBCX180F26H0171B6DDeep purplish blue
VDAPCX181219H034162DVery dark purple
DEYGCX185920H0F83994Deep yellowish green
VDERPCX190817H046117FVery deep reddish purple
VDERCX190A0DH06D126DVery deep red
VDEPRCX190A12H058126DVery deep purplish red

 

NameRGB ValueHLS ValueSampleDescription
VDARCX191213H06D162DVery dark red
VDAPRCX191216H058162DVery dark purplish red
VDARPCX191218H046162DVery dark reddish purple
DARBRCX191614H08C171CDark reddish brown
DABRCX191714H098171CDark brown
BLRCX191717H06D180DBlackish red
BLPCX191719H034180DBlackish purple
RBKCX191919H06D1904Reddish black
MidnightBlueCX191970H00045A2 
DEVCX1B0D26H0221980Deep violet
DABCX1B1B26H001212DDark blue
DodgerBlueCX1E90FFH1498FFF 
DAOLGCX1F261CH0DD2127Dark olive green
STBCX201F73H0014994Strong blue
LightSeaGreenCX20B2AAH12969B2 
ForestGreenCX228B22H0EF579B 
DERBRCX26150DH08C1980Deep reddish brown
DEBRCX261C0FH0981B6DDeep brown
DAYBRCX26251FH0AA221CDark yellowish brown
DAOLBRCX26261CH0B52127Dark olive brown
STOLGCX264C14H0DD3094Strong olive green
DAGBCX2A3440H14E3533Dark greenish blue
VIPBCX2B0766H01736DFVivid purplish blue
DABGCX2D403FH12A362DDark bluish green
DAGROLGCX2E332CH0DD3012Dark grayish olive green
STGBCX2E4C73H14E506DStrong greenish blue
STGCX2E734EH10C506DStrong green
STBGCX2E7371H12A506DStrong bluish green
SeaGreenCX2E8B57H10A5D81 
DarkSlateGrayCX2F4F4FH12C3F41 
DAGROLCX30332CH0CB3012Dark grayish olive
BIBCX3230B2H0017194Brilliant blue
LimeGreenCX32CD32H0EF809B 
VIRCX33070FH06D1DC3Vivid red
DEYBRCX332E14H0AA246DDeep yellowish brown
DAGRRBRCX332E2CH08C3012Dark grayish reddish brown
DAGRBRCX33322EH0A5300DDark grayish brown
DAGCX364C40H10C412DDark green
DAGRBCX373740H0013B12Dark grayish blue
STYGCX388C43H0F8626DSTYGStrong yellowish green
DAYGCX3B593FH0F84A33Dark yellowish green
STVCX3C1859H0223994Strong violet
DELGCX3C6629H0DD476DDeep yellow green
MediumSeaGreenCX3CB371H10A787F 
DEPCX3E1745H0342E80Deep purple
MOBCX3E3D73H001584EModerate blue
STPBCX3F1F73H0174994Strong purplish blue

 

NameRGB ValueHLS ValueSampleDescription
MOPBCX3F3059H017444EModerate purplish blue
DARCX40262BH06D3340Dark red
DAGRYBRCX403E37H0AA3B12Dark grayish yellowish brown
TurquoiseCX40E0D0H12690B8 
RoyalBlueCX4169E1H15A91BA 
DAPCX423045H0343B2DDark purple
DAGRPCX443C45H0344012Dark grayish purple
VILGCX44A616H0DD5EC3Vivid yellow green
DEPRCX45122EH0582C94Deep purplish red
DERPCX45173EH0462E80Deep reddish purple
DAPRCX452938H0583740Dark purplish red
DARPCX453042H0463B2DDark reddish purple
DAGRRCX453C3DH06D4012Dark grayish red
DAGRGCX454C48H10C490DDark grayish green
MOOLGCX45593BH0DD4A33Moderate olive green
SteelBlueCX4682B4H1467D71 
MOVCX473059H022444EModerate violet
MOOLCX47592AH0CB415DModerate olive
DarkSlateBlueCX483D8BH0076464 
MediumTurquoiseCX48D1CCH12A8D99 
GRPBCX4A4159H0174D27Grayish purplish blue
IndigoCX4B0082H02341FF 
VIPRCX4C052CH05829DFVivid purplish red
DERCX4C1923H06D3380Deep red
STRBRCX4C2714H08C3094Strong reddish brown
MOGBCX4C5D73H14E6033Moderate greenish blue
MOGCX4C735EH10C6033Moderate green
MOBGCX4C7372H12A6033Moderate bluish green
BIGBCX4D7EBFH14E8679Brilliant greenish blue
BIGCX4DBF81H10C8679Brilliant green
BIBGCX4DBFBCH12A8679Brilliant bluish green
GRVCX4F4159H0224D27Grayish violet
BIYGCX52CC62H0F88F8BBrilliant yellowish green
VIVCX53098CH0224BDFVivid violet
DABGRCX535359H0015609Dark bluish gray
GROLCX54594AH0CB5217Grayish olive
DarkOliveGreenCX556B2FH0C94D64 
OLGRCX575953H0CB5609Olive gray
DAPGRCX585359H0345609Dark purplish gray
VIRPCX59064CH04630DFVivid reddish purple
STBRCX593B18H0983994Strong brown
MORBRCX59453BH08C4A33Moderate reddish brown
MOBRCX594E41H0984D27Moderate brown
GRRBRCX594F4AH08C5217Grayish reddish brown
DARGRCX595354H06D5609Dark reddish gray
GRBRCX59564DH0A55312Grayish brown
BRGRCX595753H0985609Brownish gray

 

NameRGB ValueHLS ValueSampleDescription
MOOLBRCX595936H0B54740Moderate olive brown
DAGGRCX595959H0F85900Dark greenish gray
LIBCX5A58A6H0017F4ELight blue
STLGCX5B993DH0DD6B6DStrong yellow green
GRBCX5C5C73H001671CGrayish blue
MOYGCX5D8C64H0F87533Moderate yellowish green
CadetBlueCX5F9EA0H12D8041 
BIPBCX6130B2H0177194Brilliant purplish blue
LIOLCX628033H0CB596DLight olive
GRGCX63736AH10C6B12Grayish green
CornFlowerBlueCX6495EDH153A9CA 
DEROCX662F14H08C3DAADeep reddish orange
DAROCX663D29H08C476DDark reddish orange
MediumAquamarineCX66CDAAH1189A82 
STPCX671F73H0344994Strong purple
DimGrayCX696969H0006900 
SlateBlueCX6A5ACDH0079489 
MOPCX6B3D73H034584EModerate purple
OliveDrabCX6B8E23H0C6599B 
LIPBCX6D5299H017754ELight purplish blue
LIGBCX6E86A6H14E8A3CLight greenish blue
LIGCX6EA688H10C8A3CLight green
LIBGCX6EA6A4H12A8A3CLight bluish green
VIPCX6F0980H03444DFVivid purple
MAROONCX700000H07838FFMaroon
PURPLECX703070H03C5066Purple
GRPCX705C73H034671CGrayish purple
SlateGrayCX708090H14A8021 
STRCX731727H06D45AAStrong red
STPRCX731749H05845AAStrong purplish red
STRPCX731F65H0464994Strong reddish purple
MORCX732E3AH06D506DModerate red
MOPRCX732E53H058506DModerate purplish red
MORPCX733D6AH046584EModerate reddish purple
GRPRCX734C61H0586033Grayish purplish red
GRRCX73545AH06D6327Grayish red
GRRPCX73546EH0466327Grayish reddish purple
MOYBRCX736E58H0AA6522Moderate yellowish brown
GRYBRCX737060H0AA6917Grayish yellowish brown
DEGYCX749938H0CB6976Deep greenish yellow
VLIBCX7674D9H001A691Very light blue
MOLGCX769966H0DD7F33Moderate yellow green
LightSlateGrayCX778899H14A8825 
BIVCX7930B2H0227194Brilliant violet
LIVCX7A5299H022754ELight violet
MediumSlateBlueCX7B68EEH007ABCC 
LawnGreenCX7CFC00H0D27EFF 

 

> > > > >
NameRGB ValueHLS ValueSampleDescription
DAGYCX7E9952H0CB754EDark greenish yellow
AquamarineCX7FFDD4H119BEF8 
ChartreuseCX7FFF00H0D280FF 
MaroonCX800000H07840FF 
PurpleCX800080H03B40FF 
VIROCX803009H08C44DFVivid reddish orange
DEOCX80511AH0984DAADeep orange
BROCX80603CH0985E5DBrownish orange
STYBRCX806A2BH0A5557FStrong yellowish brown
OliveCX808000H0B440FF 
GRAYCX808080H0008000Gray
VIGYCX80BF1AH0CB6CC3Vivid greenish yellow
LIYGCX80BF88H0F89F55Light yellowish green
BGRCX83838CH001880ABluish gray
LIGROLCX838C75H0CB8118Light grayish olive
DEYCX839938H0C26976Deep yellow
PABCX8585A6H0019528Pale blue
PAVCX877099H022852APale violet
LIOLGRCX878C7EH0CB850FLight olive gray
SkyBlueCX87CEEBH13CB9B7 
LightSkyBlueCX87CEFAH142C1EB 
BILGCX88E55CH0DDA1BABrilliant yellow green
DAYCX899952H0C2754EDark yellow
BlueVioletCX8A2BE2H01F87C2 
PAPBCX8A7AA6H0179033Pale purplish blue
DarkRedCX8B0000H07846FF 
DarkMagentaCX8B008BH03B46FF 
SaddleBrownCX8B4513H0904FC2 
PGRCX8B838CH034880APurplish gray
LIOLBRCX8B8C4BH0B56C4ELight olive brown
GRLGCX8B9985H0DD8F17Grayish yellow green
STROCX8C411CH08C54AAStrong reddish orange
MOROCX8C5438H08C626DModerate reddish orange
GRROCX8C6754H08C7040Grayish reddish orange
LIRBRCX8C7367H08C7A27Light reddish brown
LIBRCX8C7962H098772DLight brown
LIGRRBRCX8C7D75H08C8118Light grayish reddish brown
RGRCX8C8385H06D880AReddish gray
LIGRBRCX8C887AH0A58313Light grayish brown
LIBRGRCX8C8883H098880ALight brownish gray
GGRCX8C8C8CH0F88C01Greenish gray
STGYCX8DBA44H0CB7F76Strong greenish yellow
DAGRYCX8E996BH0C2822FDark grayish yellow
DarkSeaGreenCX8FBC8FH0EFA641 
PAGCX90A69AH10C9B1CPale green
VLIGBCX90B0D9H14EB57CVery light greenish blue
VLIBGCX90D9D7H12AB57CVery light bluish green

 

NameRGB ValueHLS ValueSampleDescription
LightGreenCX90EE90H0EFBFBC 
MediumPurpleCX9370DBH012A699 
DarkVioletCX9400D3H02B6AFF 
PaleGreenCX98FB98H0EFCAEC 
DEPPKCX991F85H0465CAADeep purplish pink
DEPKCX99293DH06D6194Deep pink
DarkOrchidCX9932CCH0297F9B 
DEYPKCX993329H07D6194Deep yellowish pink
DAPPKCX995278H058754EDark purplish pink
LIRPCX99528EH046754ELight reddish purple
DAPKCX995C67H06D7A40Dark pink
DAYPKCX99615CH07D7A40Dark yellowish pink
LIGRRCX997078H06D852ALight grayish red
LIGRPRCX997086H058852ALight purplish red
PARPCX997092H046852APale reddish purple
DEOYCX997A1FH0A55CAADeep orange yellow
DAOYCX998547H0A5705DDark orange yellow
VIYCX99BF1AH0C26CC3Vivid yellow
VLIGCX99E5BCH10CBF99Very light green
YellowGreenCX9ACD32H0C6809B 
LIPCX9B58A6H0347F4ELight purple
MOGYCX9DBF66H0CB9369Moderate greenish yellow
VLIYGCX9EEDA8H0F8C6B0Very light yellowish green
BIPCXA030B2H0347194Brilliant purple
BROWNCXA05000H09650FFBrown
SiennaCXA0522DH08A6790 
PAPCXA185A6H0349528Pale purple
VLIPBCXA37AE5H017B0ADVery light purplish blue
STYCXA3BF46H0C2837CStrong yellow
BrownCXA52A2AH0786898 
STOCXA66921H09863AAStrong orange
MOOCXA67D4DH0987A5DModerate orange
LIYBRCXA69F7AH0AA9033Light yellowish brown
LIGRYBRCXA6A18AH0AA9822Light grayish yellowish brown
DarkGrayCXA9A9A9H000A900 
GRGYCXA9BF86H0CBA34FGrayish greenish yellow
MOYCXABBF66H0C29369Moderate yellow
VLIVCXAC74D9H022A691Very light violet
LightBlueCXADD8E6H139CA88 
GreenYellowCXADFF2FH0CB97FF 
VPABCXAEADD9H001C35CVery pale blue
BIGYCXAEE554H0CB9DBDBrilliant greenish yellow
PaleTurquioseCXAFEEEEH12CCFA6 
VIOLETCXB090D0H01EB067Violet
LightSteelBlueCXB0C4DEH14EC769 
PowerBlueCXB0E0E6H131CB85 
LILGCXB1E599H0DDBF99Light yellow green

 

NameRGB ValueHLS ValueSampleDescription
FireBrickCXB22222H0786AAE 
STPPKCXB2309EH0467194Strong purplish pink
MOPPKCXB25FA5H046895AModerate purplish pink
VIOCXB26306H0985CEFVivid orange
GRPPKCXB28FA2H058A130Grayish purplish pink
LIBGRCXB3B2BFH001B917Light bluish gray
GRYCXB5BF93H0C2A942Grayish yellow
DarkGoldenrodCXB8860BH0A362E3 
MediumOrchidCXBA55D3H0319497 
MOPKCXBA7C87H06D9B4FModerate pink
GRPKCXBA9BA1H06DAB2FGrayish pink
MOOYCXBAA157H0A5896BModerate orange yellow
YGRCXBBBFACH0C2B621Yellowish gray
RosyBrownCXBC8F8FH078A641 
VPAGCXBCD9C5H103CA46Very pale green
LIPGRCXBDB2BFH034B917Light purplish gray
DarkKhakiCXBDB76BH0B09462 
LIGYCXBDE57AH0CBB0ADLight greenish yellow
MOYPKCXBF8580H07D9F55Moderate yellowish pink
VIOYCXBF9106H0A563EFVivid orange yellow
STOYCXBF9926H0A573AAStrong orange yellow
GRYPKCXBFA5A2H07DB130Grayish yellowish pink
PKGRCXBFB2B5H06DB917Pinkish gray
BRPKCXBFB9A6H0A5B22ABrownish pink
LIGGRCXBFBFBFH0F8BF01Light greenish gray
VPAPBCXC0A8E5H017C78BVery pale purplish blue
SilverCXC0C0C0H000C000 
LIMECXC0FF81H0D2C0FFLime
BIYCXC6E55CH0C2A1BABrilliant yellow
MediumVioletRedCXC71585H0516ECF 
VLIPCXCB74D9H034A691Very light purple
VPAVCXCBA8E5H022C78BVery pale violet
PAGYCXCBE5A1H0CBC392Pale greenish yellow
VIPKCXCC1B3BH06D74C3Vivid pink
VIYPKCXCC2B1BH07D74C3Vivid yellowish pink
STYPKCXCC5D52H07D8F8BStrong yellowish pink
IndianRedCXCD5C5CH0789588 
PeruCXCD853FH0958696 
LIYCXCDE57AH0C2B0ADLight yellow
PALGCXD1E5C7H0DDD660Pale yellow green
ChocolateCXD2691EH09078C0 
TanCXD2B48CH09AAF70 
VPAPCXD3ADD9H034C35CVery pale purple
LightGreyCXD3D3D3H000D300 
ThistleCXD8BFD8H03BCC3E 
BIPPKCXD93ABFH04689ACBrilliant purplish pink
STPKCXD9576EH06D98A1Strong pink

 

NameRGB ValueHLS ValueSampleDescription
LIPPKCXD974C9H046A691Light purplish pink
BIOCXD9892BH09882B1Brilliant orange
LIOCXD9A465H0989F99Light orange
PAYCXD9E5B0H0C2CB83Pale yellow
OrchidCXDA70D6H03DA597 
GoldenrodCXDAA520H0A37DBE 
PaleVioletRedCXDB7093H065A699 
CrimsonCXDC143CH06D78D5 
GainsboroCXDCDCDCH000DC00 
PlumCXDDA0DDH03BBF79 
BurlywoodCXDEB887H09AB391 
BWHCXDEDDEDH001E54EBluish white
LILACCXE06090H062A0ACLilac
TANCXE0A860H09AA0ACTan
LightCyanCXE0FFFFH12CF0FF 
LIPKCXE599A7H06DBF99Light pink
LIYPKCXE5A099H07DBF99Light yellowish pink
BIOYCXE5B82EH0A58AC8Brilliant orange yellow
PAPPKCXE5B8D0H058CF79Pale purplish pink
PAPKCXE5BFC6H06DD26DPale pink
PAYPKCXE5C5C2H07DD468Pale yellowish pink
LIOYCXE5C76BH0A5A8B4Light orange yellow
PAOYCXE5D4A1H0A5C392Pale orange yellow
LavenderCXE6E6FAH000F0AA 
CREAMCXE8D898H0A8C0A2Cream
YWHCXE8EDD5H0C2E166Yellowish white
DarkSalmonCXE9967AH086B2B7 
PWHCXEBDDEDH034E54EPurplish white
GWHCXECEDECH0F8ED06Greenish white
PKWHCXEDDDE0H06DE54EPinkish white
VioletCXEE82EEH03BB8C2 
PaleGoldenrodCXEEE8AAH0AFCCAA 
LightCoralCXF08080H078B8CA 
KhakiCXF0E68CH0AEBEC5 
AliceBlueCXF0F8FFH147F8FF 
HoneydewCXF0FFF0H0EFF8FF 
AzureCXF0FFFFH12CF8FF 
SandyBrownCXF4A460H093AADE 
WheatCXF5DEB3H09FD4C4 
BeigeCXF5F5DCH0B4E98E 
WhiteSmokeCXF5F5F5H000F500 
MintCreamCXF5FFFAH10EFAFF 
GhostWhiteCXF8F8FFH000FCFF 
SalmonCXFA8072H07DB6EE 
AntiqueWhiteCXFAEBD7H09AE9C7 
LinenCXFAF0E6H096F0AA 
LightGoldenrodYellowCXFAFAD2H0B4E6CC 

 

NameRGB ValueHLS ValueSampleDescription
OldlaceCXFDF5E6H09FF2DA 
REDCXFF0000H07880FFRed
SALMONCXFF0055H06480FFSalmon
PINKCXFF0080H05980FFPink
MAGENTACXFF00FFH03C80FFMagenta
DeepPinkCXFF1493H0578AFF 
OrangeRedCXFF4500H08780FF 
ROSECXFF6060H078B0FFRose
TomatoCXFF6347H080A3FF 
HotPinkCXFF69B4H059B4FF 
CoralCXFF7F50H087A8FF 
ORANGECXFF8000H09680FFOrange
DarkOrangeCXFF8C00H09980FF 
LightSalmonCXFFA07AH088BDFF 
OrangeCXFFA500H09F80FF 
GOLDCXFFAA00H0A080FFGold
LightPinkCXFFB6C1H06FDBFF 
PinkCXFFC0CBH06EE0FF 
GoldCXFFD700H0AB80FF 
PeachpuffCXFFDAB9H094DCFF 
NavajoWhiteCXFFDEADH09CD6FF 
MoccasinCXFFE4B5H09EDAFF 
BisqueCXFFE4C4H098E2FF 
MistyRoseCXFFE4E1H07DF0FF 
BlanchedAlmondCXFFEBCDH09CE6FF 
PapayaWhipCXFFEFD5H09DEAFF 
LavenderBlushCXFFF0F5H064F8FF 
SeashellCXFFF5EEH090F7FF 
CornsilkCXFFF8DCH0A9EEFF 
LemonChiffonCXFFFACDH0AEE6FF 
FloralWhiteCXFFFAF0H0A0F8FF 
SnowCXFFFAFAH078FDFF 
YELLOWCXFFFF00H0B480FFYellow
LightYellowCXFFFFE0H0B4F0FF 
IvoryCXFFFFF0H0B4F8FF 
WHITECXFFFFFFH000FF00White

ColorScale Macro

When creating maps or other graphs it is sometimes desirable to produce gradient shading, a gradual change from one color to another. The COLORSCALE macro was designed to dynamically calculate color values in a gradient. With this macro you define a starting color, an ending color, and the number of intermediate colors you need. Optionally, you can specify a middle color to force the gradient to use this color as the value in the center.

Examples are given for assigning the colors to PATTERN statements for a map, and for defining a gradient as the background of a bar chart.

[출처] sas 컬러 색깔|작성자 캡짱


'통계 > SAS' 카테고리의 다른 글

SAS gplot  (0) 2014.11.05
SAS goptions  (0) 2014.11.05
Posted by Azel.Kim :