Error in plot.new() : figure margins too large, Scatter plot

I’ve looked in different questions for a solution and I’ve tried what was suggested but I have not found a solution to make it work. Everytime I want to run this code it always says: Error in plot.new() : figure margins too large and I don’t know how to fix it. Here is my code: … Read more

Categories R

Critical t values in R

The code you posted gives the critical value for a one-sided test (Hence the answer to you question is simply: Note that the t-distribution is symmetric. For a 2-sided test (say with 99% confidence) you can use the critical value

Categories R

ggplot wrong color assignment

As you want to supply color names to argument colour= and display also a legend for this argument, you should add scale_colour_identity() to your last line in function. This scale ensures that values supplied will be interpreted as actual color values. Adding of argument breaks=cols_hex in function scale() will ensure ordering of names in legend.

Poker hand range chart visualization in R

Is it possible to make visualization of poker hand range chart in R like this? I want to show how many times player had certain hand, so there will be numbers with frequency. Little 5 under title AA if player had AA 5x times and so on. It would be great change color of each … Read more

Categories R

Poker hand range chart visualization in R

EDIT: I’ve essentially answered the OP. I just spent a while learning how text and images work in R, still don’t understand them all too well, but here’s a start to solving your issue. These posts helped me greatly: display a matrix, including the values, as a heatmap Align text inside a plot Here’s a … Read more

Categories R

R Hex to RGB converter

Based on the comments already given, you can use this code: However, looking at your requested result, it seems that you have the alpha-value as first hex-number in your x – so you need to create a substring:

Categories R Tags