Open ThomasPepperz opened 5 years ago
You need to use wes_palette(n=3, "GrandBudapest1")
or wes_palette(n=3, "GrandBudapest2")
.
scale_fill_manual((values=wes_palette(n = 2, "GrandBudapest1")))
Error: Insufficient values in manual scale. 2 needed but only 0 provided.
@kbroman Karl, thank you for the quick reply. If you have time, the adjusted code is incurring the above error as well. By the way, bravo for dedicating the time to import the wonderful color of Wes Anderson's films into R. Very, very cool.
Seems like that extra set of ()
is messing things up; I'm not sure why. Try
scale_fill_manual(values=wes_palette(n = 2, "GrandBudapest1"))
I think I did remove them after I posted the that last error message, but let me try again. If you're not seeing anything wrong with the code itself or my R Version output then it must be something going on with my data or the way I've constructed my ggplot( ) call, which of course is not your fault. This is the point of troubleshooting error messages I suppose. I don't know how often I just tweaked a ridiculous part of the code and then everything worked for no reasonable explanation.
The only thing that is troubling me is the error messages I'm receiving is recognizing I am trying to supply a number for the values argument but won't work no matter what value I input.
Error: Insufficient values in manual scale. 2 needed but only 0 provided.
... blah blah... +
scale_fill_manual(wes_palette(n = 4, "GrandBudapest2"))
Error: Insufficient values in manual scale. 4 needed but only 0 provided.
I tried it on a differentggplot
I created and still having trouble. Oh well. I appreciate your assistance and for creating the wesanderson package. Go ahead and close the issue since it seems to be something on my end as opposed to the package's end and when I come across the solution or my work-around I will go ahead and post it for the sake of posterity.
Hi! I'm glad you didn't close this, I was having the same issue and fixed it by deleting the "n=". Give it a try!
Appreciate the update.
On Fri, Jun 7, 2019 at 12:47 PM juana-mu notifications@github.com wrote:
Hi! I'm glad you didn't close this, I was having the same issue and fixed it by deleting the "n=". Give it a try!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/karthik/wesanderson/issues/33?email_source=notifications&email_token=AHH3VQ2R7RGXBKRKT5FMA3TPZKNMZA5CNFSM4GL6M6LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXGQ26A#issuecomment-499977592, or mute the thread https://github.com/notifications/unsubscribe-auth/AHH3VQ2P34RQ7FA4PHG5MJTPZKNMZANCNFSM4GL6M6LA .
Error in wes_palette(n = 3, "GrandBudapest") : Palette not found.