Displaying 2 results from an estimated 2 matches for "r_colort".
Did you mean:
n_colors
2005 Nov 18
1
using a factor as col argument in plot:
Dear R core team
Using the following code produces an empty plot (similar
to col = NA):
> plot(1:9, col = factor(rep(1:3,3), labels = c("red", "blue", "black")))
My question: Shouldn't one get at least a warning (or an error)
if one tries to use a factor as col argument?
Thanks for an answer.
Regards,
Christoph Buser
2000 Oct 03
2
plot.table() ?
I tend to use table() quite a bit for quick "diagnostics", summary, etc.
I have wished for a more automatic way of plotting these.
One possibility would be something like the following function;
The question is if (something like) the following is worth providing (and then
maintaining...) at all :
plot.table <- function(x, type = "h", ylim = c(0, max(x)), lwd = 2,