Não foi possível enviar o arquivo. Será algum problema com as permissões?
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
Ambos lados da revisão anterior Revisão anterior Próxima revisão | Revisão anterior Próxima revisão Ambos lados da revisão seguinte | ||
disciplinas:ce223:comandos2008 [2008/05/26 15:10] ehlers |
disciplinas:ce223:comandos2008 [2008/05/26 15:44] ehlers |
||
---|---|---|---|
Linha 1069: | Linha 1069: | ||
\end{tabular} | \end{tabular} | ||
</latex> | </latex> | ||
+ | |||
+ | <code> | ||
+ | \begin{tabular}{|l|cc|} | ||
+ | \hline | ||
+ | &masculino & feminino \\ | ||
+ | \hline\hline | ||
+ | Não fuma &45 & 16 \\ | ||
+ | Fuma pouco &28 & 22 \\ | ||
+ | \hline | ||
+ | \end{tabular} | ||
+ | </code> | ||
Incluindo figuras. | Incluindo figuras. | ||
Linha 1089: | Linha 1100: | ||
Pode-se fazer referencia a figura no texto: figura \ref{hfig:ist}, na pagina \pageref{fig:hist}. Note que a figura ficou rotacionada à esquerda. Podemos corrigir refazendo o arquivo .ps ou usando a opção "angle". | Pode-se fazer referencia a figura no texto: figura \ref{hfig:ist}, na pagina \pageref{fig:hist}. Note que a figura ficou rotacionada à esquerda. Podemos corrigir refazendo o arquivo .ps ou usando a opção "angle". | ||
+ | |||
+ | <code R> | ||
+ | postscript('histograma.ps',horozontal=F) | ||
+ | hist(rnorm(1000)) | ||
+ | dev.off() | ||
+ | </code> | ||
+ | |||
+ | <code> | ||
+ | \begin{figure}[htbp]\centering | ||
+ | \includegraphics[width = 10cm, height = 10cm, angle = 270]{histograma.ps} | ||
+ | \caption{Histograma de uma amostra de tamanho 1000 da distribuição normal padrão.} | ||
+ | \label{fig:hist} | ||
+ | \end{figure} | ||
+ | </code> | ||
+ | |||
+ | Colocando duas figuras lado a lado. Acrescente \usepackage{subfigure} no preambulo. | ||
+ | |||
+ | <code> | ||
+ | \begin{figure}[h] | ||
+ | \centerline{ | ||
+ | \subfigure[histograma grande]{\includegraphics[width=10cm, height = 10cm]{histograma.ps} | ||
+ | \label{fig:hist1}} | ||
+ | \hfil | ||
+ | \subfigure[histograma pequeno]{\includegraphics[width=5cm, height=5cm]{histograma.ps} | ||
+ | \label{fig:hist2}} | ||
+ | } | ||
+ | \caption{Exemplo de duas figuras.} | ||
+ | \label{fig:histogramas} | ||
+ | \end{figure} | ||
+ | </code> | ||
+ | |||
+ | Fazendo referencia: Figuras \ref{fig:histogramas}, \ref{fig:hist1} e \ref{fig:hist2}. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||