Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rownames don't show in example codes #20

Open
aminadibi opened this issue Jan 31, 2018 · 8 comments
Open

rownames don't show in example codes #20

aminadibi opened this issue Jan 31, 2018 · 8 comments
Labels

Comments

@aminadibi
Copy link

aminadibi commented Jan 31, 2018

Examples fail to produce rownames as shown in the example screenshots (R v3.4.3 in Windows)

> slopegraph(cancer, col.lines = 'gray', col.lab = "black", 
+            xlim = c(-.5,5.5), cex.lab = 0.5, cex.num = 0.5,
+            xlabels = c('5 Year','10 Year','15 Year','20 Year'))

image

@leeper
Copy link
Owner

leeper commented Feb 1, 2018

tibbles don't have row names. Use a normal data frame instead.

@aminadibi
Copy link
Author

I don't think it's tibble though. See below:

> is.tibble(cancer)
[1] FALSE
> cancer
                 Year.5 Year.10 Year.15 Year.20
Prostate             99      95      87      81
Thyroid              96      96      94      95
Testis               95      94      91      88
Melanomas            89      87      84      83
Breast               86      78      71      75
Hodgkin's            85      80      74      67
Uterus               84      83      81      79
Urinary              82      76      70      68
Cervix               71      64      63      60
Larynx               69      57      46      38
Rectum               63      55      52      49
Kidney               62      54      50      47
Colon                62      55      54      52
Non-Hodgkin's        58      46      38      34
Oral                 57      46      38      33
Ovary                55      49      50      50
Leukemia             43      32      30      26
Brain                32      29      28      26
Multiple myeloma     30      13       7       5
Stomach              24      19      19      15
Lung                 15      11       7       6
Esophagus            14       8       8       5
Liver                 8       6       6       8
Pancreas              4       3       3       3

@leeper
Copy link
Owner

leeper commented Feb 1, 2018

Ah, sorry. I mixed this and your other issue. I'll investigate.

@j-sirgo
Copy link

j-sirgo commented Apr 17, 2018

Any updates on this?

@leeper
Copy link
Owner

leeper commented Apr 17, 2018

Nope. If you can figure it out, I'd appreciate a PR.

@leeper
Copy link
Owner

leeper commented Apr 18, 2018

I suspect the issue was just solved by: #22 Let me know if not.

@leeper leeper added the bug label Apr 18, 2018
@j-sirgo
Copy link

j-sirgo commented Apr 18, 2018 via email

@j-sirgo
Copy link

j-sirgo commented Apr 18, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants