Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@wokenny13
Copy link
Collaborator

Created a for loop for TADA_GroupedScatter to condense the code and make it more concise. Will work to edit other functions like TADA_DepthProfilePlot to see if this can be done there

TADA_ViewColorPalette() should also return a stored value in the example documentations now rather than return NULL or an empty list().

@wokenny13
Copy link
Collaborator Author

Waiting to see if checks go through successfully. Once it is successful, checking a few other examples to make sure the TADA_GroupedScatterplot is still functioning would be good to do.

Copy link
Collaborator

@hillarymarler hillarymarler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes to the grouped scatterplot are excellent- code is much more concise and it functions as intended.

For viewing the color palette, the updates work for the original palette, but I get this error when I run it for the pairs:
image

This happens when it run it with or without assigning it a name.

@wokenny13
Copy link
Collaborator Author

The changes to the grouped scatterplot are excellent- code is much more concise and it functions as intended.

For viewing the color palette, the updates work for the original palette, but I get this error when I run it for the pairs: image

This happens when it run it with or without assigning it a name.

Thanks for finding this! I will look into it to determine what may be the cause

@hillarymarler
Copy link
Collaborator

I'm still seeing the same error when I try to assign a name with col_pair = TRUE.

@wokenny13
Copy link
Collaborator Author

wokenny13 commented Aug 26, 2024

It seems like that error may show up depending on the screen margin of the monitor it is being viewed on. On my second monitor I don't get any error messages, but when I switch RStudio to the laptop monitor screen, I do run into an error.

But when I do re-run TADA_ViewColorPalette(col_pair = TRUE) again on the laptop monitor screen, I am able to view it, but it shows up looking like this:
image

Rather than looking like this on my 2nd monitor:
image

What does your plot look like when you run TADA_ViewColorPalette(col_pair = TRUE)?

I will try to see if I can find a solution by adjusting the figure margins to be compatible when viewed on any monitor

@hillarymarler
Copy link
Collaborator

This is a tricky one!

On my laptop monitor I get this error:

image

I have two other monitors. One of them it works, on the other one, I get this error message:
image

The plot views are now larger with this change.

the plots should be getting stored to a variable and resets the margins back to normal size
@hillarymarler hillarymarler merged commit 538da07 into develop Aug 26, 2024
@hillarymarler hillarymarler deleted the Figures.R-condensed-code-and-tada-view-color-palette-to-return-a-non-null-value branch August 26, 2024 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants