3
This is an example of a report that I’m doing. As the margin settings are already adjusted, when I change the names of the columns with the colnames it ends up passing the margin. Any help on how to break this line ? For example the "Predicted ARIMA". Will an image of how it could look.
x <- runif(n = 15, min = 1, 10)
y <- runif(n = 15, min = 1, 10)
z <- runif(n = 15, min = 1, 10)
w <- runif(n = 15, min = 1, 10)
k <- runif(n = 15, min = 1, 10)
df_exemplo <- data.frame(x, y, z, w, k)
colnames(df_exemplo) <- c("Previsto ARIMA", "Previsto Holtwinters", "Observado", "Erro ARIMA (%)", "Erro Holtwinters (%)")
This is an Excel question?
– Rui Barradas
@Noisy just the example is in Excel to show how I wanted to show in PDF, I forgot to comment that this is a report in Sweave. If there’s any way to break this line directly through the R, I’ve tried using the " n" but not the funnel either.
– RafaelB
@Rafaelb, where will the text appear? If it is in a graph, for example, the line break with
"\n"
works both in ther-base
how much in theggplot2
– Tomás Barcellos
@Tomásbarcellos the text will appear in the name of a column (colnames) of a table.
– RafaelB
If it’s for interactive use only,
View(df_exemplo)
already breaks the lines even without entering any"\n"
– Tomás Barcellos