-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic_utility.Rnw
95 lines (77 loc) · 2.74 KB
/
basic_utility.Rnw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{fontspec}
\usetikzlibrary{decorations.text,pgfplots.groupplots,intersections,shapes.multipart}
\pgfplotsset{compat=1.7}
\definecolor{nice_blue}{HTML}{377EB8}
\definecolor{nice_green}{HTML}{80C87D}
\definecolor{nice_purple}{HTML}{984EA3}
\definecolor{nice_red}{HTML}{E41A1C}
\definecolor{nice_orange}{HTML}{FF7F00}
\definecolor{nice_light_orange}{HTML}{FDBF6F}
\definecolor{nice_yellow}{HTML}{FFFF99}
\definecolor{nice_pink}{HTML}{FB9A99}
\pgfplotsset{
simple graphs/.style={
domain=0:12
,xmin=0
,xmax=12
,ymin=0
,ymax=12
,axis lines*=left
,xtick=\empty
,ytick=\empty
,every axis y label/.style={
at={(axis description cs:-0.05,0.05)}
,rotate=90
,anchor=west},
}
,every axis x label/.style={
at={(axis description cs:0.5,-0.1)}
,anchor=south}
}
\def\myshift#1{\raisebox{2ex}}
\begin{document}
%\resizebox{\columnwidth}{!}{
\begin{tikzpicture}[scale=0.95]
\centering
\node at (.75,4.5) {\fontspec{Frutiger LT Std 55 Roman}w\textsubscript{1}};
\node at (1.25,5) {\fontspec{Frutiger LT Std 55 Roman}w\textsubscript{2}};
\node at (1.75,5.45) {\fontspec{Frutiger LT Std 55 Roman}w\textsubscript{3}};
\node[color=nice_purple] at (5.35,3.5) {\fontspec{Frutiger LT Std 55 Roman}Well-being};
\begin{axis}[
simple graphs,
ymax=6,
xmax=6,
ytick=\empty,
xtick=\empty,
enlarge x limits=false,
axis lines*=left,
axis line style = {gray!80, line width=2.83464567pt,shorten <=-0.5\pgflinewidth},
xlabel=\fontspec{Frutiger LT Std 55 Roman}Household Produced Investments,
ylabel=\fontspec{Frutiger LT Std 55 Roman}Market Purchased Investments
]
% \begin{axis}[
% %ggplot graphs,
% axis lines*=left,
% ytick=\empty,
% xtick=\empty,
% xmin=0,
% xmax=12,
% ymin=0,
% ymax=12,
% %x label style={at={(axis description cs:0.5,-0.1)},anchor=north},
% %y label style={at={(axis description cs:-0.1,.5)},rotate=90,anchor=south},
% xlabel=\fontspec{Frutiger LT Std 55 Roman}Household Produced Investments x\textsubscript{ch},
% ylabel=\fontspec{Frutiger LT Std 55 Roman}Market Purchased Investments x\textsubscript{cm},
% axis line style = {line width=2.83464567*0.5pt,shorten <=-0.5\pgflinewidth},
% enlarge x limits=false
% ]
\addplot [nice_blue, line width=2.83464567pt, smooth] table {wb1.dat};
\addplot [nice_blue, line width=2.83464567pt, smooth] table {wb2.dat};
\addplot [nice_blue, line width=2.83464567pt, smooth] table {wb3.dat};
\addplot[->, nice_purple, line width=2.83464567pt] plot coordinates{(3.5,3.5)(4.25,4.5)};
\end{axis}
\end{tikzpicture}
\end{document}