Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tccDocument
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eduardo E. R. Junior
tccDocument
Commits
1d37d1f5
Commit
1d37d1f5
authored
9 years ago
by
Eduardo E. R. Junior
Browse files
Options
Downloads
Patches
Plain Diff
Adiciona procedimento para incluir descrição da fonte em plots trellis combinados
parent
baefc224
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/_setup.R
+15
-0
15 additions, 0 deletions
docs/_setup.R
with
15 additions
and
0 deletions
docs/_setup.R
+
15
−
0
View file @
1d37d1f5
...
...
@@ -69,11 +69,26 @@ ps$par.sub.text <- list(font = 1, just = "left", cex = 0.9,
x
=
grid
::
unit
(
5
,
"mm"
))
trellis.par.set
(
ps
)
## da lattice combinados (1. use ps.sub como par.settings, nos gráficos
## bottom da combinação e 2. use fonte.xy("texto") após o print dos
## gráficos)
library
(
grid
)
library
(
gridExtra
)
ps.sub
<-
list
(
layout.heights
=
list
(
bottom.padding
=
5
))
fonte.xy
<-
function
(
texto
,
...
)
{
grid
::
grid.text
(
texto
,
x
=
0.01
,
y
=
0.01
,
default.units
=
"npc"
,
just
=
c
(
"left"
,
"bottom"
),
...
)
invisible
()
}
## da graphics (use fonte("texto") após os gráficos)
fonte
<-
function
(
texto
,
side
=
1
,
line
=
-1
,
adj
=
0
,
outer
=
TRUE
,
...
)
{
mtext
(
"Fonte: Elaborado pelo autor."
,
cex
=
0.9
,
side
=
side
,
line
=
line
,
adj
=
adj
,
outer
=
outer
,
...
)
invisible
()
}
##======================================================================
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment