<div dir="ltr">Eu conheço os pacotes sjPlot e sjmisc. não lembro ao certo qual o comando, ele gera um likert bem parecido com o da figura.<div><br></div><div>Deve ter algum tutorial na pagina dos pacotes.</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">lmassis <at> yahoo <dot> com <dot> br<br>assis.leonard <at> gmail <dot> com</div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 30, 2021 at 9:04 PM Cesar Rabak por (R-br) <<a href="mailto:r-br@listas.c3sl.ufpr.br">r-br@listas.c3sl.ufpr.br</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Prezado Sergio,<div><br></div><div>A figura que mostras parece ser um <i>plot</i> de variáveis tratadas como escalas Likert.</div><div><br></div><div>Há um pacote específico no R para tal.</div><div><br></div><div>Adicionalmente, o "jeitão" do gráfico parece ser resultado do conjunto de pacotes do ggplot, que deve ter em uma das suas "estéticas" (<i>aesthetics</i>) o tipo de gráfico "likert" ou nome dele associado a essa representação.</div><div><br></div><div>HTH</div><div>--</div><div>Cesar Rabak</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 30, 2021 at 8:33 PM Sergio Pinto por (R-br) <<a href="mailto:r-br@listas.c3sl.ufpr.br" target="_blank">r-br@listas.c3sl.ufpr.br</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:monospace,monospace" class="gmail_default">Prezados tenho um conjunto de dados que desejo apresentar de forma que fique semelhante a imagem abaixo. <br></div><div style="font-family:monospace,monospace" class="gmail_default">Entretanto não sei como plotar as frequências nas categorias das respostas. A imagem é do site:</div><div style="font-family:monospace,monospace" class="gmail_default"><a href="https://sebastiansauer.github.io/plotting_surveys/" target="_blank">https://sebastiansauer.github.io/plotting_surveys/</a></div><div style="font-family:monospace,monospace" class="gmail_default"><br></div><div style="font-family:monospace,monospace" class="gmail_default">Envio o link dos meus conjuntos de dados. <br></div><div style="font-family:monospace,monospace" class="gmail_default"><a href="https://www.datafilehost.com/d/604da9ba" target="_blank">https://www.datafilehost.com/d/604da9ba</a><br></div><div style="font-family:monospace,monospace" class="gmail_default"><br></div><div style="font-family:monospace,monospace" class="gmail_default">Pelo que li a respeito eu preciso saber a frequência de respostas do tipo 1, do tipo 2 , do tipo 3, etc, para conseguir plotar o valores no gŕafico que desejo. <br></div><div style="font-family:monospace,monospace" class="gmail_default">ex: p01 20 resp do tipo 1; 4o respostas do tipo 2, 10 respostas do tipo 3 etc.</div><div style="font-family:monospace,monospace" class="gmail_default"><br></div><div style="font-family:monospace,monospace" class="gmail_default">Agradeço desde já.<br></div><div style="font-family:monospace,monospace" class="gmail_default"><br></div><div style="font-family:monospace,monospace" class="gmail_default"><img src="cid:ii_kpbt3t1a1" alt="image.png" style="margin-right: 0px;" width="378" height="378"><br><br><pre id="gmail-m_-6010566829483451748gmail-m_-7772738548514536960gmail-rstudio_console_output" style="font-family:"Ubuntu Mono",monospace;font-size:16px;outline:currentcolor none medium;border:medium none;word-break:break-all;margin:0px;white-space:pre-wrap;line-height:1.25;color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span><span style="color:blue;white-space:pre-wrap"></span></span></pre></div><div style="font-family:monospace,monospace" class="gmail_default">Uma amostra dos meus dados:</div><div style="font-family:monospace,monospace" class="gmail_default">id,p01,p02,p03,p04,p05,p06,p07,p08,p09,p10,p11<br>1, 6, 6, 6, 5, 4, 6, 4, 5, 5, 5, 5<br>2, 5, 5, 3, 3, 4, 3, 6, 5, 4, 4, 1<br>3, 3, 5, 5, 4, 5, 3, 5, 6, 3, 4, 1<br>4, 1, 1, 1, 8, 8, 8, 7, 7, 7, 7, 7<br><pre id="gmail-m_-6010566829483451748gmail-m_-7772738548514536960gmail-rstudio_console_output" style="font-family:"Ubuntu Mono",monospace;font-size:16px;outline:currentcolor none medium;border:medium none;word-break:break-all;margin:0px;white-space:pre-wrap;line-height:1.25;color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span><span style="color:blue;white-space:pre-wrap"> <br></span></span></pre></div><div style="font-family:monospace,monospace" class="gmail_default">p01 até p11 são as perguntas e os números sob as perguntas são o s itens das respostas.</div><div style="font-family:monospace,monospace" class="gmail_default"><br></div><div style="font-family:monospace,monospace" class="gmail_default">> sessionInfo()<br>R version 4.0.3 (2020-10-10)<br>Platform: x86_64-pc-linux-gnu (64-bit)<br>Running under: Linux Mint 20.1<br><br>Matrix products: default<br>BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0<br>LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0<br><br>locale:<br> [1] LC_CTYPE=pt_BR.UTF-8 LC_NUMERIC=C <br> [3] LC_TIME=pt_BR.UTF-8 LC_COLLATE=pt_BR.UTF-8 <br> [5] LC_MONETARY=pt_BR.UTF-8 LC_MESSAGES=pt_BR.UTF-8 <br> [7] LC_PAPER=pt_BR.UTF-8 LC_NAME=C <br> [9] LC_ADDRESS=C LC_TELEPHONE=C <br>[11] LC_MEASUREMENT=pt_BR.UTF-8 LC_IDENTIFICATION=C <br><br>attached base packages:<br>[1] stats graphics grDevices utils datasets methods base <br><br>other attached packages:<br>[1] forcats_0.5.1 stringr_1.4.0 dplyr_1.0.5 purrr_0.3.4 <br>[5] readr_1.4.0 tidyr_1.1.3 tibble_3.1.1 ggplot2_3.3.3 <br>[9] tidyverse_1.3.1<br><br>loaded via a namespace (and not attached):<br> [1] Rcpp_1.0.6 cellranger_1.1.0 pillar_1.6.0 compiler_4.0.3 <br> [5] dbplyr_2.1.1 tools_4.0.3 digest_0.6.27 jsonlite_1.7.2 <br> [9] lubridate_1.7.10 lifecycle_1.0.0 gtable_0.3.0 pkgconfig_2.0.3 <br>[13] rlang_0.4.10 reprex_2.0.0 cli_2.4.0 rstudioapi_0.13 <br>[17] DBI_1.1.1 haven_2.4.0 xml2_1.3.2 withr_2.4.2 <br>[21] httr_1.4.2 fs_1.5.0 generics_0.1.0 vctrs_0.3.7 <br>[25] hms_1.0.0 grid_4.0.3 tidyselect_1.1.0 glue_1.4.2 <br>[29] R6_2.5.0 fansi_0.4.2 readxl_1.3.1 farver_2.1.0 <br>[33] modelr_0.1.8 magrittr_2.0.1 backports_1.2.1 scales_1.1.1 <br>[37] ellipsis_0.3.1 rvest_1.0.0 assertthat_0.2.1 colorspace_2.0-0<br>[41] labeling_0.4.2 utf8_1.2.1 stringi_1.5.3 munsell_0.5.0 <br>[45] broom_0.7.6 crayon_1.4.1 <br></div><div style="font-family:monospace,monospace" class="gmail_default"><br></div><div style="font-family:monospace,monospace" class="gmail_default"><br></div><br>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="text-align:left"><span style="color:rgb(0,0,255)"><font size="2"><span style="font-family:monospace,monospace"><b><span style="color:rgb(0,0,0)">_______________________________________<br></span></b></span></font></span></div><div style="text-align:left"><span style="color:rgb(0,0,255)"><font size="2"><span style="font-family:monospace,monospace"><b><span style="color:rgb(0,0,0)">Prof. Dr. SERGIO MEDEIROS PINTO</span><br></b></span></font></span></div><div style="text-align:left"><span style="font-family:monospace,monospace"><font size="2">LABICOM/IEFD-UERJ</font></span></div><div style="text-align:left"><span style="font-family:monospace,monospace"><font size="2">FAMERC-RJ</font></span></div><div style="text-align:left"><span style="font-family:monospace,monospace"><font size="2">UNESA-RJ<br></font></span></div><div style="text-align:left"><span style="font-family:monospace,monospace"><font size="2"><a href="http://lattes.cnpq.br/5897044784217523" target="_blank">http://lattes.cnpq.br/5897044784217523</a><br></font></span></div><div style="text-align:left"><span style="font-family:monospace,monospace"><font size="2"><br></font></span></div><div style="text-align:left"><font size="2"><br></font></div><div style="text-align:left"><font size="2"></font><br><span style="font-family:monospace,monospace"><font size="2"></font></span></div><div style="text-align:center"><br></div></div></div></div></div></div></div></div>
_______________________________________________<br>
R-br mailing list<br>
<a href="mailto:R-br@listas.c3sl.ufpr.br" target="_blank">R-br@listas.c3sl.ufpr.br</a><br>
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" rel="noreferrer" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" rel="noreferrer" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br>
</blockquote></div>
_______________________________________________<br>
R-br mailing list<br>
<a href="mailto:R-br@listas.c3sl.ufpr.br" target="_blank">R-br@listas.c3sl.ufpr.br</a><br>
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" rel="noreferrer" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" rel="noreferrer" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br>
</blockquote></div>