[R] How to create a readable plot in R with 10000+ values in a dataframe
Martin Maechler
m@ech|er @end|ng |rom @t@t@m@th@ethz@ch
Fri Jul 24 14:35:16 CEST 2020
>>>>> Ritwik Mohapatra
>>>>> on Thu, 23 Jul 2020 23:41:57 +0530 writes:
> How to create a readable and legible plot in R with 10k+ values.I have a
> dataframe with 17298 records.There are two columns:Machine Name(Character)
> and Region(Character).So i want to create a readable plot with region in x
> axis and machine name in y axis.How do i do that using ggplot or any other
> way.Please help.
Good answers to this question will depend very much on how many
'Machine' and 'Region' levels there are.
(and this is a case where in my opinion it'd be *MUCH* more
useful to have 'factor' instead of 'character'.. if only just
so
str(<data>)
or summary(<data>)
would give useful/relevant information.
--
One possibility for a somewhat cute plot is a "good ole"
sunflower plot (base graphics, but the idea must be easily
transferable to grid-based graphics such as ggplot2):
help(sunflowerplot)
Martin Maechler
ETH Zurich
More information about the R-help
mailing list