Posts by Camila Braz • 21 points
6 posts
-
0
votes2
answers31
viewsA: Edges with incorrect values
I switched the argument directed in graph_from_data_frame for TRUE and worked properly on my computer. grafo11 <- graph_from_data_frame(df1, directed = TRUE)…
-
0
votes1
answer70
viewsA: Error installing "summarytools" package in R
The quotes go only on install.Packages. Try running the command library without the quotation marks. install.packages("summarytools") library(summarytools)…
ranswered Camila Braz 21 -
0
votes1
answer25
viewsA: How to resolve an Error in Plot.new() : figure margins Too large, in R
This happens because the space to plot the images is insufficient for the graph you are crowding. You can drag the margins to make it bigger, or use the X11(). X11(); tsdiag(m1,gof.lag=20) This way…
-
1
votes1
answer21
viewsA: Change scale on R
You don’t want to use scientific notation, right? I found an old question here that may have a solution for you. Language R: How to get scientific numbers out of graphs? The solution is to use…
ranswered Camila Braz 21 -
1
votes1
answer37
viewsA: How to edit the following bar graph in R?
ggplot(df, aes(x = factor(Período), y = Valor, fill = Variedades)) + geom_bar(stat = "identity", position = "dodge") + scale_fill_manual(values = c("1", "3")) + geom_text(aes(y = Valor, label =…
-
0
votes3
answers19175
viewsA: How to calculate the average of a column in R?
If you want to calculate the average of all columns, you can use: colMeans(dados) If you want to average a specific column colMeans(dados$V1) It is also possible to calculate the average of the…
ranswered Camila Braz 21